-
Notifications
You must be signed in to change notification settings - Fork 110
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
Localised error pages cause redirect loops #249
Comments
This is a strange issue, and I'm not that familiar with the matchPath property. (Which I think might be what's causing the redirect to be created) Could you please try disabling |
Hi, Sorry for the delay on getting back to you. I tried building the website with different combinations of Combination 1:
|
Did you manage to solve your issue ? I'm encountering a very similar situation. |
Unfortunately no. I couldn't find a way to get this working and ended up using single error page with the default language for the whole site. This is quite far from optimal as it only works for certain language and causes the site language to change to default. |
Hi,
I am facing some challenges as I'm trying to implement localised error pages for our website. For some reason I am ending up with redirect loops in different locations depending on the configuration. The page is structured so that "/" path is for default locale and other locales are prefixed with langKey, for example "/sv/". I am creating the localised error pages as follows:
The error page for default language is configured to the default 404.html.
If I use this for page creation and have the S3 plugin configured as follows:
Everything seems to be working fine in the main locale under "/" path (also the 404 page). Other locales (for example "/sv/") are also fine when navigating to pages that exist, but anything that can't be found, for example "/sv/foobar" causes ERR_TOO_MANY_REDIRECTS.
If I change the configuration to include
generateMatchPathRewrites: false
, the localised error pages seem to be working fine, except when doing a hard refresh (cmd + shift + r) on the index page for particular locale (for example in path "/sv/"). Hard refresh navigates to "/sv/404" and causes ERR_TOO_MANY_REDIRECTS. Regular refresh on the index path for different locales are working fine.Is there something I could configure differently to prevent the redirect loops from happening? Tips and help would be greatly appreciated as I am hitting a wall myself.
The text was updated successfully, but these errors were encountered: