Audit Web App Manifest URLs Before Updating Browser Shortcuts

Audit deployed manifest URLs, redirects, icons, and shortcut destinations, then test the installed app before releasing browser shortcut updates.

Published
Reading time
6 min read
Audit Web App Manifest URLs Before Updating Browser Shortcuts
On this page

Before changing browser shortcuts, check the web app manifest URLs that determine where an installed app starts and what its shortcuts open. A URL can return HTTP 200 and still lead to the wrong screen, an authentication page, or an HTML fallback instead of an icon.

This workflow covers the deployed manifest, its referenced URLs, and a separate installed-app test. The current W3C specification and browser-vendor guidance could not be consulted for this article; confirm browser-specific installation and update behavior against those sources before release.

Key Takeaways

  • Inventory the deployed manifest’s start_url, scope, shortcut URLs, and icons, including icons nested under shortcuts.
  • Resolve relative URLs against the deployed manifest URL, and check for unexpected hosts and redirect destinations.
  • An HTTP status check cannot establish that a manifest is valid or that a shortcut opens the intended screen.
  • Test both a fresh installation and an existing installed app on the browsers and operating systems you support.
  • Keep private staging addresses, credentials, and sensitive query parameters out of public checkers and shared reports.

Inventory the deployed manifest URLs

Start from the public page users install. Find its manifest link in the page source or browser developer tools, then record the manifest URL actually fetched. A release candidate’s manifest is useful for comparison, but the deployed file tells you what the public page currently serves.

For each URL, record its field, resolved URL, expected host, expected destination or file type, and owner. Include:

ItemWhat to inventory
ManifestURL linked by the installable page, plus its final URL after redirects
start_urlThe app’s launch destination
scopeThe intended URL boundary for the app; treat this as a navigation boundary, not an access-control rule
shortcutsEach shortcut’s url, name, and nested icons URLs, if present
Top-level iconsEach icon’s src, declared type, and sizes
Related public URLsThe install page, known redirect targets, and other resources relevant to your release, such as declared screenshots

For example, a fictional manifest served from https://example.com/manifest.webmanifest might contain:

{
  "name": "Example App",
  "start_url": "/app/",
  "scope": "/app/",
  "icons": [
    { "src": "/assets/app-icon.png", "sizes": "192x192", "type": "image/png" }
  ],
  "shortcuts": [
    {
      "name": "Reports",
      "url": "/app/reports/",
      "icons": [
        { "src": "/assets/reports-icon.png", "sizes": "96x96", "type": "image/png" }
      ]
    }
  ]
}

Here the root-relative shortcut URL resolves to https://example.com/app/reports/. A relative value without a leading slash resolves against the manifest’s location, which may not be the install page’s directory. If the manifest redirects, inspect its final URL and verify the resolved values in the target browser. Keep the launch and shortcut destinations on the intended app origin and within the intended scope; a trailing slash in a path can matter when matching scope.

Some fields may be absent or invalid and browsers may apply defaults or ignore them. Do not infer effective values solely from the JSON: inspect the manifest in the browser and check its current documentation for the behavior you depend on.

Advertisement

Check the manifest and resources as deployed

Use the browser’s network and application or manifest inspection panels to confirm which manifest the public page loads, whether it parses, and whether the browser reports missing or invalid fields. Compare its contents with the candidate manifest and your URL inventory.

For public URLs, a command-line check can show both the initial response and the destination after redirects. Replace the fictional URL below with a URL you own or are authorized to check. The first command does not follow redirects; the second does.

URL='https://example.com/manifest.webmanifest'

curl -sS -D - -o /dev/null "$URL"
curl -sS -L -o /dev/null -w 'Final status: %{http_code}\nFinal URL: %{url_effective}\n' "$URL"

Repeat the checks for the start URL, shortcut URLs, icon files, and relevant public pages. Review each redirect hop when a destination is unexpected; a successful final response can hide a redirect to a different host, a login page, or a generic error page. Check that icon responses contain the expected image rather than an HTML fallback, and that the manifest response contains the intended JSON. Also inspect response content types and browser diagnostics.

Command-line requests may not match an authenticated browser session, and a server can respond differently to different clients. If a URL requires sign-in, test it in an appropriately authorized browser session as well. Do not put credentials, session-bearing URLs, or private staging addresses into a public status checker. Keep local headers and logs containing sensitive information out of shared reports.

For the candidate update, compare each URL’s host and path with the intended environment. Look especially for production pages pointing to staging assets, obsolete domains, missing files, redirects across environments, and shortcut destinations that have moved. Validate private environments with tools and access approved for those environments, rather than publishing their addresses in an audit.

Advertisement

Test the installed app separately

A status check answers whether a request received a response; it does not validate the manifest or prove that an installed shortcut works. After deploying to an appropriate test environment, use the browsers and operating systems your users rely on:

  1. In browser developer tools, inspect the fetched manifest and resolve reported errors. Confirm the effective start URL, scope, shortcut destinations, and icons where the browser exposes them.
  2. Install a fresh copy of the app. Launch it normally and confirm it reaches the intended screen, including any expected sign-in flow.
  3. Open every available app shortcut from the operating system’s app shortcut surface. Confirm the correct screen opens and that its navigation behaves as intended.
  4. Check an existing installation after the update as well. Manifest update timing and which shortcut surfaces are supported vary by browser and platform; consult the relevant vendor guidance rather than assuming changes appear immediately.
  5. If the app uses a service worker or offline cache, repeat relevant checks under the network conditions you support. A cached page or asset can mask a deployment problem.

If a platform does not expose a shortcut, record that as a compatibility result rather than treating it as a successful shortcut test. Capture the browser, operating system, installation state, observed destination, and any diagnostics in the release record. These examples and commands have not been executed as part of this article.

Common Mistakes

  • Checking only the source manifest. The deployed page may reference another file, or a redirect or cache may expose an older one.
  • Treating 200 as proof of correctness. A login page or single-page-app fallback can return 200 for a missing resource.
  • Resolving paths against the wrong URL. Relative manifest values depend on the manifest location, not simply the page a developer happens to be viewing.
  • Treating scope as security. Scope does not replace authentication, authorization, or server-side access controls.
  • Testing only a fresh installation. Existing installations can receive updates differently; test both states.
  • Publishing internal URLs. Redact private hosts and sensitive query values before sharing a report or using a third-party service.

Best Practices

Maintain a small URL inventory alongside the release, with expected hosts and destinations for each environment. Check the manifest and assets after deployment, then retain a record of installed-app results for each supported browser and platform. Recheck vendor guidance when changing installation behavior or relying on shortcut updates.

Conclusion

Audit the deployed manifest and its referenced resources first, then verify the actual installed experience. Both checks are necessary: HTTP responses reveal deployment problems, while browser and operating-system tests establish whether users reach the intended screens.

What would your domain sell for?

A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.