Problem with redirect

We have a problem with redirect and query string
https://www.dynamiccode.com/se/hemtester works fine
https://www.dynamiccode.com/se/hemtester?foo=bar does not redirect at all, gives 404-error

We set “Keep querystring in redirect” to “Yes” in Permanent redirects

Litium version: 7.1.0

There’s a reported bug with redirects not working when you’re using a prefix on the domain. You can track it here: https://docs.litium.com/support/bugs/bug_details?id=45613

Ok, but are you sure this the same problem as in bug? Querystring is not mentioned there, just redirect between example.com and example.com/se if I understand correct(?)

My domain looks like this on channel, we are using url prefix for se

Seems I did a poor job of reading the bug description.

This would be a different bug then. Could you please report it on Docs?
I tested on both 7.1 and 7.2.3 and the redirect doesn’t work with querystrings if you use a prefix on the domain.

If you check the file log, you should have a row that starts with Check url-redirects for: (logged with trace severity). Is that row containing the correct url that it should look after?

Here’s logs from my tests. The URL is domain.com/se/test and it shows up in both scenarios.

Working
Check url-redirects for: "domain.com/se/se/test", "domain.com/se/test", "/se/test", "/test"

Not working
Check url-redirects for: "domain.com/se/se/test?foo=bar", "domain.com/se/test?foo=bar", "/se/test?foo=bar", "/test?foo=bar", "domain.com/se/test", "/test"

Ok, we will report a bug

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.