How to add paths to the apple-app-site-association file if a site has subpaths for determining locales?

Viewed 142

I am having doubts regarding a particular scenario on adding paths to an association file.This is an association file for a site www.abc.com.Now the site starts to support localization ,For ex. www.abc.com/en-ca for Canada,it will display a localised Canadian site.In future more locales will be added.The rest of the paths mentioned in the association file are same (ex. www.abc.com/path1/* now becomes www.abc.com/en-ca/path1/*.How can the association file be modified in such a way that it supports www.abc.com/en-ca and many more locales in the future?

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "teamid.com.xxx.appName",
                "paths": [
                    "/",
                    "/path1/*",
                    "/xx/xx/path2*",
                    "/path3",
                    "/path4/*",
                    "/path5*",
                    "/path6*"
                ]
            }
        ]
    },
    "webcredentials": {
        "apps": [
            "teamid.com.xxx.appName"
        ]
    }
}
1 Answers

As Documentation says you can use:

/photography/*/samples/201?/mypage

So in your example, it would be:

"paths": [
    "/",
    "/path1/*",
    "/xx/xx/path2*",
    "/path3",
    "/path4/*",
    "/path5*",
    "/path6*"
    "/*/",
    "/*/path1/*",
    "/*/xx/xx/path2*",
    "/*/path3",
    "/*/path4/*",
    "/*/path5*",
    "/*/path6*"
]
Related