-
-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dynamicStartUrl caused chrome to goes offline after first redirection #194
Comments
Update: found a response for your workaround here: GoogleChrome/workbox#2749 (comment), do you suggest to not enable |
I'm seeing a similiar issue on iOS Safari 12-14.x with next-pwa
|
Try version
|
@shadowwalker thanks using Line 5 in f9955c2
Is that a left over from development or an intended one? It's shown even in production build. |
Version |
Sorry for not getting back sooner. I've confirmed that the issue has been fixed using latest version, thanks @shadowwalker! |
Summary
When setting
dynamicStartUrl: true
option, the new installability check in Chrome 89 disappeared, visittingstart-url
got redirected correctly as intended. But when I tried to visit thestart-url
again after the first redirection, it won't open the page and chrome's offline page was shown instead.Chrome's DevTool also show this warning
How To Reproduce
I've created a minimal repro here: https://github.com/panjiesw/pwa-repro with this
next.js.config
Steps to reproduce the behavior:
yarn dev
(oryarn build
thenyarn start
)Expected Behaviors
Users should still be able to re-visit
start-url
after they got redirected when usingdynamicStartUrl
instead of shown Chrome's offline page.Screenshots
Chrome DevTool warning:
Chrome offline page:
Additional Context
My PWA require a redirection from
start-url
(/
) to a login page if not authenticated (handled server side in Next.js). Before, the PWA got Chrome's warning that it won't be installable in Chrome 93 onwards, so I'm tryingdynamicStartUrl
feature innext-pwa
.The text was updated successfully, but these errors were encountered: