-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Presence of language prefix in URL incorrectly assigns admin session #2511
Comments
I fixed the issue in #2512 |
Thanks for the commit, however I'm not sure I understand how this works. Won't |
There's a second commit with a change in the Utils function. 8a7f624 sorry, forgot i commited this first. |
Ooh, right, I'm sorry, I didn't realize. Never mind then, thanks for the fix!! |
I discovered the following strange behavior on a multi-language page with admin plugin:
/en
) but visible with the trailing slash (e.g./en/
) or on sub-pages (e.g./en/blog
). This particular symptom is actually because of Utils::pathPrefixedByLangCode doesn't detect homepage with prefix without trailing slash #2510 in combination with this bug./en
to/en/
- I hadn't fully understood the problem yet). Further investigation showed that on/
a different session would be used than on/en/
//de/
, and hence the new language would be written to session A but/
would read from session B and redirect to the wrong language.Turns out that this is due to a bug in
SessionServiceProvider.php
: It sets$is_admin = true
if the route starts with/admin
or with a language prefix. It should instead check if it starts with/<prefix>/admin
in that case!The text was updated successfully, but these errors were encountered: