Closed indygriffiths closed 3 years ago
Please rebase on latest master too so that the 5.3 tests run :)
First time contributing to open source repo, so apologies for the mess of commits!
I've added a config option to allow case insensitive query parameters, and created a new test that checks if the redirect happens when case insensitive matching is enabled and the query parameters use a different case to the redirect rule.
Thanks a lot for the hard work on this and sorry I've been silent the past couple of weeks.
Just a few more changes :)
@robbieaverill would you mind taking a look at this?
@indygriffiths the master branch is now SS4 compat. I've set this PR to target 1
branch now.
I haven't looked at this for a while so I'd like to clarify a few things.
To
URL on save which meant redirects would not go to the URL as entered by the CMS admin (if they had uppercase chars).From
URL case insensitivelyTo
URL at all timesIs that all correct?
@dhensby
FromBase
is also case sensitive.To
was never being changed.OK - so we are only match the query string in a case insensitive way? That seems unnecessary...
I'd prefer if we had it mimic current behaviour (whole link is checked in a case insensitive way) and that this be default (as it is currently) and devs can opt-out of loose matching.
Otherwise we run the risk of unexpected regressions
This pull request: