问题
I have a website which is also a PWA.
If I add the PWA to my device (Android) and then go back into the browser (Chrome, latest available version for Android), the links with target="_blank"
will open in the PWA, no matter what.
I know this could be a corner case, but what if I want to be sure that browsers links will be open in browser and not in the PWA?
iOS behaves correctly...
回答1:
In manifest.json you set a scope, which determines which links will open in the PWA and which will open in the browser:
scope parameter in PWA Manifest
来源:https://stackoverflow.com/questions/53173797/target-blank-link-opening-in-pwa-and-not-in-browser-in-android