Dolphiq / craft-plugin-redirect

Craft 3 redirect plugin provides an easy way to enter and maintain 301 and 302 redirects and 404 pages. The plugin provides a clear user interface for admin and non-admin users.
MIT License
54 stars 34 forks source link

Avoid url encoded placeholders in destination URL #120

Closed clemblanco closed 3 years ago

clemblanco commented 4 years ago

Avoid ending up with url encoded placeholders in the destination URL whenever we couldn't find the get parameter in the incoming request.

This kind of redirect:

/some-source-url --> /some-destination-url?foo=<foo>

would give us

/some-source-url?foo=bar --> /some-destimation-url?foo=bar

which is fine.

But this shouldn't give us

/some-source-url --> /some-destimation-url?foo=%3Cfoo%3E

I'd rather simply have /some-destimation-url?foo= instead.