scope

Type String
Mandatory No
Example
"scope": "/app/"

The scope member is a string that defines the navigation scope of this web application's application context. It restricts what web pages can be viewed while the manifest is applied. If the user navigates outside the scope, it reverts to a normal web page inside a browser tab or window.

If the scope is a relative URL, the base URL will be the URL of the manifest.

Examples

If the scope is relative, the manifest URL is used as a base URL:

"scope": "/app/"

The following scope limits navigation to the current site:

"scope": "https://example.com/"

Finally, the following example limits navigation to a subdirectory of the current site:

"scope": "https://example.com/subdirectory/"

Specification

Specification Status Comment Feedback

Web App Manifest
The definition of 'scope' in that specification.

Working Draft

Initial definition.

Web App Manifest Working Group drafts

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
scope
Experimental
Chrome ? Edge ? Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

Document Tags and Contributors

Tags: 
Contributors to this page: wbamberg, glennhartmann, chrisdavidmills, bershanskiy
Last updated by: wbamberg,