Closed mikabusante closed 2 years ago
can anyone else repro this?
I can repro after clicking the repo link:
actually, just went back to this, and the above no longer repros the issue hmmmm
so i can still repro it, but only in firefox? (v103)
i'm also trying to repro in firefox v103, but no luck for me
fwiw it only happens when i:
then the steps you listed:
but it seems like more JS is broken than just the router, eg the header BG won't update:
ty ty, i can repro with that. there are these errors in the console:
are you seeing these too? maybe something with loading the locale data?? 🔍
lol i'm glad you found that bc mine has 0 errors! 😰
maybe related https://github.com/i18next/next-i18next/issues/988? also https://github.com/vercel/next.js/issues/27744!!!!
also, i can repro locally when running yarn build
/yarn start
, just making sure it wasn't a vercel related issue
ok -- I believe this is a nextjs issue, but I don't fully understand it. I'd guess that this function runs when returning from an external page.
not 100% sure if this is the cause but comparing this to issue #27744 i linked above, that second return statement (return e
) is not getting tree-shaken out and that's causing issues?
a fix we can do on our side is having external links open in a new tab?
edit: can look into this more on monday, but this could also be possibly caused by the internationalized routing getting messed up when using an external url in the <Link>
component?
i was wondering about the link thing too. 1571742e66 (preview) didn't help, but maybe using plain a
tags would work