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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite reload/loop when switching language with useKcLanguageTag #85
Comments
I can reproduce. |
I think it will be an easy fix but I first need to be able to run a local container of keycloak to debug. |
It should be fixed in latest release, let me know if it did it. |
Hi, Thanks for the fix but I doubt disabling the language switch on Thanks anyways for checking, |
Well, it's a bit more complex than it seems. My fix doesn鈥檛 disable the language switch on the Explanation of the infinite loop:
By disabling to redirect on the It is the only scenario I see that can produce this loop. Precisely, the loop happens when: |
Thank you for the comprehensive explanation @garronej! Indeed, the language switch doesn't work on I found as well that the same issue is present at least in these pages: Cheers, |
Nice catch, I will address that.
As a matter of fact, with Keycloakify the pages served by the Keycloak server are static, there is just the
very helpful thank you |
Thank you, the fix seems to work ! I will keep you on the loop if we find other templates causing such issues :) |
I just to let you know that I have re-writen i18n. |
Hi,
First, thank you for this very useful lib 馃檹 !
I've experienced some infinite reload / loop on my keycloakify theme in specific cases.
To reproduce
=> Infinite loop should happen at this point =>
error.ftl
template should be reloaded infinitely(or try again switching the language the other way around if it doesn't happen)
Probable issue
The locale as within the page is not the same as the one in local storage.
In this case the app keeps redirecting to
kc_locale=fr
but keycloak keeps returning the page in english.=> If we remove this item in local storage the language switch is canceled and the page stays in english.
Do you have any idea how we could fix this?
Thanks 馃檶
The text was updated successfully, but these errors were encountered: