Skip to content
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

ERR_TOO_MANY_REDIRECTS when rootpage is a referrence to a page #35

Open
akroii opened this issue Apr 26, 2024 · 2 comments
Open

ERR_TOO_MANY_REDIRECTS when rootpage is a referrence to a page #35

akroii opened this issue Apr 26, 2024 · 2 comments

Comments

@akroii
Copy link

akroii commented Apr 26, 2024

Hi Tim,
maybe there is a bug here.
When I active the Option allowAllPaths there is an endless redirect which ends in ERR_TOO_MANY_REDIRECTS.
It tries to redirect from domain.com to home then back to domain.com and then back to home and so on.

My site is configured as follows.

  • Rootpage (<- link to home)
    • Home (<- start page)
    • About us

Root page is a link to Home.
No redirects are activated in the “Redirects” module.

@akroii
Copy link
Author

akroii commented Jul 5, 2024

Hello Tim,
I wanted to ask you if you have been able to find anything here yet?

@lochmueller
Copy link
Owner

No news yet. Please keep in mind that allowAllPaths is not a good best practice (why should a user call a deeplink and want a redirect to another language?!). I think the default example in your case, has no language key in the URI, right? Could you extend example URIs in your problem description?

I suggest to disable allowAllPaths. Otherwise we have to set a cookie, that the user is already redirected or you have to add a check, because the referrer is mising in your case https://github.com/lochmueller/language_detection/blob/main/Classes/Check/FromCurrentPageCheck.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants