3

I am having problems trying to match '#' character for Universal Link file (apple-app-site-association).

For an URL like domain/#/results/parameters I've been trying with:

  • /?/results/*
  • /*/results/*
  • /#/results/*
  • /\#/results/*
  • /%23/results/*

But none of them worked for me.

The annoying point is the two first matches the almost equal URL domain/a/results/parameters (whatever character instead #)

How can I match the #?

Regards

Salazar
  • 401
  • 1
  • 3
  • 8

2 Answers2

3

@salazar, Finally Apple has heard our queries. Now you can specify fragments in the form of components from iOS 13

The apple-app-site-association structure is changed like this,

 "applinks": {
   "details": [
     {
    "appIDs": [ "TeamID.com.example.myapp"],
    "components": [
          {
            "/": "/path/#mypath/*",
            "#": "*fragment"
          }
        ]
      }
    ]
  }
}

You can find more information about universal linking here - https://developer.apple.com/videos/play/wwdc2019/717/

Note - The documentation is not updated yet at the time of writing this answer.

Rizwan Ahmed
  • 919
  • 13
  • 19
0

The "#" character is typically used in web URLs to specify a page fragment. As the documentation states, fragments are ignored when evaluating a path for Universal Links:

"Other components, such as the query string or fragment identifier, are ignored."

https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html

Salazar
  • 401
  • 1
  • 3
  • 8