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
Missing redirects in legacy routing mode with empty URL suffix #3382
Comments
|
Is there a particular reason for this? I think it is very inconvenient that there is no redirect in this case. |
Because |
But is this:
configurable? |
@aschempp /cc |
By working you mean you get a redirect to |
I get a successful redirect from |
In my examples // I have added an |
The redirect from |
In my case, |
No, I was not able to reproduce that. How many website roots and for which languages do you have, and in which website roots does a page with the alias |
I have two website roots. One for |
Is this page present with the same alias in both roots? |
Yes, the page is present in both languages with the same alias. |
The fact that it is not working seems specific to your Contao instance then may be. I cannot reproduce this. |
@fritzmg would you be able to create some failing functional tests for the explained use cases? |
@fritzmg So what could cause this error? What would you suggest on how to troubleshoot? |
It might be worth to investigate if apache vs nginx have different behaviour in regards of trailing slashes. At least that was what i was encountering some years ago. May be it's just a webserver-config thing. |
Okay, I have found at least two of my contao installations, where this occurs. What could cause this behaviour? |
@fritzmg Does the issue occur in Contao 4.13, too? If so, please reassign the milestone. |
The issue seems to be solved in 4.13. Thank you :-) |
Affected version(s)
Contao 4.11, 4.12
Description
If you configured
contao.prepend_locale = true
andcontao.url_suffix = ''
under Contao 4.9, the following redirects would happen:Location
response headerexample.com/de
example.com/de/
index
page ofde
website tree.example.com/exists
example.com/en/exists
exists
page ofen
website tree.example.com/does-not-exist
example.com/xx/does-not-exist
404
page of the respective website tree (depending onAccept-Language
).However, under Contao 4.11.9, 4.12 with legay routing not disabled the following happens:
Location
response headerexample.com/de
404
page.exapmle.com/exists
example.com/en/exists
exists
page ofen
website tree.example.com/does-not-exist
404
page.At least the non-trailing slash language URL not redirecting (and showing the Symfony
404
page instead) should not be happening withlegacy_routing
enabled.With
contao.legacy_routing = false
the following happens under Contao 4.12:Location
response headerexample.com/de
example.com/de/
index
page ofde
website tree.exapmle.com/exists
example.com/en/exists
exists
page ofen
website tree.example.com/does-not-exist
404
page.The latter redirect not happening is intended, iirc?
/cc @aschempp
The text was updated successfully, but these errors were encountered: