The same thing happens when you scan an NFC tag containing the URL. At least me and someone else have this issue:
https://stackoverflow.com/questions/65150897/swiftui-universal-links-not-working-for-nfc
Their work-around is to use a custom URL scheme, but since that's frowned upon these days it would be nice if this was fixed. I assume it's an issue in SwiftUI (or maybe something lower level - I haven't written a UIKit test app to narrow down where the URL ges lost).
I did make a quick test to see if custom schemes work, but I could only get it to work when scanning a QR code - not when scanning an NFC tag.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: