mozilla / bedrock

Making mozilla.org awesome, one pebble at a time
https://www.mozilla.org
Mozilla Public License 2.0
1.18k stars 919 forks source link

Update /.well-known/apple-app-site-association #15458

Open pmac opened 9 hours ago

pmac commented 9 hours ago

Description

There is a need to update the file in the title to work with new changes in Firefox mobile. The new contents for this file will be pasted in the comments.

blandthorn commented 9 hours ago

Requested contents to be updated:

{
  "applinks": {
    "details": [
      {
        "appID": "43AQ936H96.org.mozilla.ios.Firefox",
        "components": [
          {
            "/": "/en-US/firefox/browsers/mobile/get-ios/*",
            "comment": "Matches any URL whose path starts with /en-US/firefox/browsers/mobile/get-ios"
          },
          {
            "/": "/en/products/firefox/firefox-tips/online-shopping-tips/*",
            "comment": "Matches the specific test URL under /en/products/firefox/firefox-tips/online-shopping-tips"
          }
        ]
      },
      {
        "appID": "ABCD1234.com.example.otherapp",
        "components": [
          {
            "/": "/en-US/firefox/browsers/mobile/get-ios/*",
            "comment": "Matches any URL whose path starts with /en-US/firefox/browsers/mobile/get-ios for another app"
          },
          {
            "/": "/en/products/firefox/firefox-tips/online-shopping-tips/*",
            "comment": "Matches the specific test URL for the second app"
          }
        ]
      }
    ]
  }
}
stevejalim commented 8 hours ago

Hi @blandthorn - in the comment above, some in the second object look like they might be placeholders/WIP content: ABCD1234.com.example.otherapp as the appID and both of the comments, or at least the second one

Can you advise on what they should be, please? (Or feel free to edit the comment yourself, no worries)

blandthorn commented 8 hours ago

Thank you @stevejalim — 

Firefox: 43AQ936H96.org.mozilla.ios.Firefox Firefox Beta: 43AQ936H96.org.mozilla.ios.FirefoxBeta

stevejalim commented 7 hours ago

Have chatted with Brad directly about the second URL, which i couldn't find www.mozilla.org -- which was because it's a URL on blog.mozilla.org

So, I'm wondering if we can update it to this to include the hostnames:

{
  "applinks": {
    "details": [
      {
        "appID": "43AQ936H96.org.mozilla.ios.Firefox",
        "components": [
          {
            "/": "https://www.mozilla.org/en-US/firefox/browsers/mobile/get-ios/*",
            "comment": "Matches any URL whose path starts with /en-US/firefox/browsers/mobile/get-ios"
          },
          {
            "/": "https://blog.mozilla.org/en/products/firefox/firefox-tips/online-shopping-tips/*",
            "comment": "Matches the specific test URL under /en/products/firefox/firefox-tips/online-shopping-tips"
          }
        ]
      },
      {
        "appID": "43AQ936H96.org.mozilla.ios.FirefoxBeta",
        "components": [
          {
            "/": "https://www.mozilla.org/en-US/firefox/browsers/mobile/get-ios/*",
            "comment": "Matches any URL whose path starts with /en-US/firefox/browsers/mobile/get-ios for Firefox Beta"
          },
          {
            "/": "https://blog.mozilla.org/en/products/firefox/firefox-tips/online-shopping-tips/*",
            "comment": "Matches the specific test URL under /en/products/firefox/firefox-tips/online-shopping-tips"
          }
        ]
      }
    ]
  }
}

@pmac Do you have any insight into whether adding hostnames into the paths here will be OK?