The resaon of adding "applinks" is the App Store Connect may not detect your associated domain and appears error: "URL is not contained in your app’s associated domains".
P.S. this tutorial is posted a year ago (iOS14), and some of the api/detail may not be the same as latest (iOS15).
FYR: https://developer.apple.com/forums/thread/658974#632569022