【问题标题】:Is it possible to add a shortcut in Google Chrome that points to a sub folder是否可以在 Google Chrome 中添加指向子文件夹的快捷方式
【发布时间】:2019-12-13 10:11:09
【问题描述】:

我有一个 Angular PWA 部署到这样的子文件夹

https://mywebsite.com/fileshare/app/test

我想使用 Google Chrome 添加快捷方式,但遇到了意外问题。

生成的快捷方式会指向网站的根目录https://mywebsite.com

有没有人知道这是否或如何可能?

【问题讨论】:

    标签: angular google-chrome progressive-web-apps shortcut


    【解决方案1】:

    是的,这是可能的。您需要为此提供两个属性,如下所示。更新您的 manifest.json 文件。

    "start_url": "/fileshare/app/test",
    "scope": "/fileshare/app/test"
    

    【讨论】:

    • 太好了,非常感谢!它首先不起作用,但可能与缓存问题有关。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-10-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-03
    • 1970-01-01
    相关资源
    最近更新 更多