Retain query string through redirect

Created on 15 September 2011, almost 13 years ago
Updated 2 May 2024, about 2 months ago

I see the current approach (with a "Retain query string through redirect" checkbox) quite incomplete (unflexible). It makes sense in case there is a redirect without any query entered. If there is a redirect query, it is quite obvious that it should replace the current (received) query.

But, what about the situation where there is a redirect source query present, but no destination query defined? Would't it be logical to expect that in such cases we don't always want the query to be retained? Meaning that there can be a case where exactly URL with just a certain query should be redirected to some other address, but without any query part?

I believe "Retain query string through redirect" checkbox shouldn't be a general option, but an option attached to each particular redirect (there can however be a general option, but to be used just as a default value...). This way we could have in one environment redirects where the query part is preserved (retained), as well as some others where it is not...

✨ Feature request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇸🇮Slovenia LUTi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024