# handle_links manifest member

> handle_links is a WICG proposal letting an installed PWA ask to open in-scope links in its own window. No engine ships it; Chrome 155 drops the member silently.

The `handle_links` manifest member is a WICG proposal for requesting that links into an installed PWA's `scope` open in the app window or a browser tab. The `pwa-url-handler` explainer defines three string values. The member is a hint: the user agent can honour a user preference over the manifest.

No engine ships it. The Chromium entry on chromestatus.com lists the implementation as "On hold"
with no origin trial and no milestone, and Firefox and Safari have published no position
(chromestatus.com, feature 5740751225880576). Chrome 155 parses the manifest without it: the
member is dropped silently like any unknown key. Chromium supports link capturing through a per-app user setting; the manifest cannot enable it.

## Member

| Property | Value |
|---|---|
| Type | String: `"auto"`, `"preferred"`, or `"not-preferred"`. |
| Default | `"auto"` when absent or set to another value; the user agent picks the platform's own behaviour. |
| Example | `"preferred"`. |

`preferred` asks the user agent to open in-scope links in the installed app; `not-preferred`
asks it to keep them in the browser; `auto` defers to the platform. The member controls whether an in-scope link reaches the app. It does not widen `scope`;
that requires `scope_extensions`. Once a link reaches the app, `launch_handler` controls
how the app handles it. The explainer lists both as non-goals for this member.

Desktop Chrome 155 and Edge 154 offer a
per-app toggle in the app's settings page (`chrome://apps`, right-click, **App settings**) named
**Opening supported links** with the choice **Open in [app name]**; the default is off and the
manifest cannot flip it. Chrome for Android captures links into a WebAPK when the site's
`assetlinks.json` verifies the app through Digital Asset Links, again with no manifest input.

:::caution
Chromium's manifest parser ([`manifest_parser.cc`](https://chromium.googlesource.com/chromium/src/+/main/third_party/blink/renderer/modules/manifest/manifest_parser.cc)) has no handling of `handle_links`, and DevTools' [`AppManifestView.ts`](https://github.com/ChromeDevTools/devtools-frontend/blob/main/front_end/panels/application/AppManifestView.ts) has no row for it. The member is not read and nothing in DevTools or the Console reports that it has no effect.
:::

## Examples

The proposed syntax expresses a link-opening preference. Chromium supports routing captured links once they reach the app.

### Declaring the preference the explainer describes

The member sits at the top level next to `scope`. `start_url` must remain inside `scope` for the
declared boundary to apply; otherwise the user agent falls back to a scope derived from
`start_url` (w3.org, Web Application Manifest "scope member") and the links `handle_links` would
cover are not the ones the author intended.

```json
{
  "name": "Tracker",
  "start_url": "/app/",
  "scope": "/app/",
  "handle_links": "preferred"
}
```

This manifest is valid everywhere because unknown members are ignored. On Chrome 155 the line
changes nothing; it documents intent for a browser that may implement the explainer later.

### Routing a captured link with launch_handler and launchQueue

When the user has enabled link capturing for the app, Chrome 110+ launches the installed app
and reports the clicked URL through `LaunchParams.targetURL`. Pairing `launch_handler` with a
`launchQueue` consumer keeps a single window and navigates it in place; without a consumer the
browser opens the URL in a new app window.

```json
{
  "launch_handler": { "client_mode": "navigate-existing" }
}
```

```js
if ('launchQueue' in window) {
  window.launchQueue.setConsumer((launchParams) => {
    if (!launchParams.targetURL) return; // Icon launch, nothing to route.
    const url = new URL(launchParams.targetURL);
    router.navigate(url.pathname + url.search);
  });
} else {
  // Firefox 157 and Safari 27: links open in a tab; the page loads the URL normally.
}
```

`client_mode: "navigate-existing"` is what makes the captured link reuse the open window; the
`launchQueue` consumer is only needed for client-side routing. A page that renders from the
URL on load needs neither.

## See also

- [scope manifest member](/reference/manifest/scope/)
- [scope_extensions manifest member](/reference/manifest/scope-extensions/)
- [launch_handler manifest member](/reference/manifest/launch-handler/)
- [WebAPK: how Chrome installs PWAs on Android](/reference/installation/webapk/)
- [PWA URL Handler: handle_links explainer](https://github.com/WICG/pwa-url-handler/blob/main/handle_links/explainer.md) (github.com)
- [Chrome Platform Status: Web App Link Handling (handle_links)](https://chromestatus.com/feature/5740751225880576) (chromestatus.com)
- [Launch Handler API](https://developer.chrome.com/docs/web-platform/launch-handler) (developer.chrome.com)