You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When going back to the previous browser's history pages, those pages are not being refetched with the correct locale once the user has changed the locale of the website on the current page.
Maybe this is is the intended behavior, but it shouldn't: Why in the world an user that changes the language on my website and go back to the previous pages would want those pages to display on the previous language and not the language that he actually wants?
Verifications
I've verified that the problem I'm experiencing isn't covered in the docs.
I've searched for similar, existing issues on GitHub and Stack Overflow.
I'm navigating between my pages using both the <Link/> component and the useRouter() router extracted from the object returned by the createSharedPathnamesNavigation function. After navigating FORWARD to any page, either by clicking on components or changing the url using the browser's search bar, everything works as expected:
The new locale is succesfully being inyected onto the target url when the user chooses the new language he wants
The NEXT_LOCALE cookie is succesfully changing to the new locale.
The pages are picking the correct locale and are being rendered with the correct translations
But when navigating BACKWARDS, when clicking on the browser's back button, every page of the history will completely ignore the NEXT_LOCALE cookie and will render it's content on the previous locale language and not the new one. No new requests are being made when going back to those pages.
Expected behaviour
When navigating backwards the pages must be refetched if the NEXT_LOCALE cookie has changed an use that locale.
The text was updated successfully, but these errors were encountered:
Description
When going back to the previous browser's history pages, those pages are not being refetched with the correct locale once the user has changed the locale of the website on the current page.
Maybe this is is the intended behavior, but it shouldn't: Why in the world an user that changes the language on my website and go back to the previous pages would want those pages to display on the previous language and not the language that he actually wants?
Verifications
Mandatory reproduction URL
https://www.ramzeis.com
Reproduction description
I'm following all of the steps on the navigation section docs.
I'm navigating between my pages using both the
<Link/>
component and theuseRouter()
router extracted from the object returned by thecreateSharedPathnamesNavigation
function. After navigating FORWARD to any page, either by clicking on components or changing the url using the browser's search bar, everything works as expected:But when navigating BACKWARDS, when clicking on the browser's back button, every page of the history will completely ignore the NEXT_LOCALE cookie and will render it's content on the previous locale language and not the new one. No new requests are being made when going back to those pages.
Expected behaviour
When navigating backwards the pages must be refetched if the NEXT_LOCALE cookie has changed an use that locale.
The text was updated successfully, but these errors were encountered: