Language conflict causes redirect to index page
I've stumbled upon a weird bug.
If my default language is set to X, but I open a page with language Y (e.g. by manually editing the address bar), it opens the desired page for a second and then redirects me to index page with language X.
Yesterday I learned it the hard way, by losing two timed puzzles.
But here's how you could possibly reproduce it without losing anything:
1. Go to calcudoku.org and switch the language to Russian by clicking the appropriate flag.
2. Go to
https://www.calcudoku.org/bonus/de3. You will be redirected to
https://www.calcudoku.org/ruOn step 2, you could also try going to…
https://www.calcudoku.org/it/2021-01-26/extrahttps://www.calcudoku.org/en/2021-02-06/6/3…and it would still redirect you.
This seems to work with any language pair. And I can't understand why. I mean, the expected behavior would be: 1) opening the page with language Y, and 2) either setting Y as the new default language or not. Definitely not 3) if X ≠ Y go to index
P.S. This is
not just one browser's cookie issue; I've tested it on two devices: under desktop Firefox and mobile Chrome.