How to redirect to a URL via JS


#1

Using Framework7 Vue + webpack from the new CLI.

How can we redirect a user to a url with the same behaviour tapping an .external link would have? Outside of the PWA completely without the ios 12.2 webview appearing


#2

As far as i know, iOS 12.2 PWA open external sites only in webview, but did you try target="_blank"?


#3

yep, didnt work. window.open with target _blank didn’t work for me


#4
  • :warning: The new In-App Browser means there is no way to call Safari from a PWA

#5

.external links still work, i resorted to creating an element with class external with the url for the user to tap and go. its messed up because links to (twitter, facebook, etc) that auto redirect to the url scheme mess the webview and leave the PWA dead in about:blank