demo · v132
Where does the link open?
An installed PWA with a launch_handler. Pick where the link is clicked, see whether it opens in the browser or hands off to the app, plus the exact navigate-existing vs focus-existing vs auto semantics.
result: —
full decision matrix
| client_mode | app not running | same URL running | different URL running |
|---|---|---|---|
| auto | launch new app window | focus existing | focus existing, navigate to new URL |
| navigate-existing | launch new app window | navigate-existing (focus + go to URL) | navigate-existing |
| focus-existing | launch new app window | focus existing, no nav | focus existing, no nav (URL stays old!) |
| navigate-new | launch new app window | open second app window | open second app window |
manifest example
{
"name": "Mail",
"start_url": "/",
"display": "standalone",
"launch_handler": {
"client_mode": "navigate-existing"
}
}
see also
- Navigation Capturing — feature index
- Nav Capture on Desktop
- link playground
- spec
- ChromeStatus entry