Open 3rg1s opened 7 months ago
Weird, I experience same on production site, but no issue when run it locally! Is it same for you?
Also, was wondering, is prefixing default locale maybe nice to have generally? From what I can see NEXT_LOCALE cookie works only when app is opened on /
, so for example even with the cookie, if you open not prefixed URL on some surah or any other page, you won't get language from cookie?
Weird, I experience same on production site, but no issue when run it locally! Is it same for you?
Also, was wondering, is prefixing default locale maybe nice to have generally? From what I can see NEXT_LOCALE cookie works only when app is opened on
/
, so for example even with the cookie, if you open not prefixed URL on some surah or any other page, you won't get language from cookie?
Yes it does work locally for me. Well If i set a language and then goto /login, it wont change the language to the one I have set, so indeed it does set it when opening /
Is there an existing issue for this?
Describe the bug
Setting a language perviously would cause the web app to keep the setting and have that language, as it takes the value from the NEXT_LOCALE cookie. The issue is only visible on prod and on beta environments. Also the NEXT_LOCALE cookie is set all the times.
Relevant log output
No response
Steps to reproduce
Environment (please complete the following information) and Add any other context about this bug
Tested on Macbook pro:
Environment
Production(quran.com)