简体   繁体   中英

Set start_url dynamic in manifest.json

Trying to create PWA but the manifest.json request to set an url in start_url, but we have 27 different pages we want it to work on. Is there a way to populate start_url dynamic with the url the user is? 在此处输入图片说明

The start URL should only be the bit you have blocked out in red, what you may consider the "home page" or "base page" of your website. For example, Google's 'start_url' would be https://google.com .

This is the URL a user would come to when they first start your PWA, or have finished a line of visit and want to go back to the start of the site.

See here for more info:https://developer.mozilla.org/en-US/docs/Web/Manifest/start_url

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM