gridonic / statamic-redirects

Manage URL redirects intuitively, discover and fix 404's automagically, improve your SEO dramatically
https://statamic.com/marketplace/addons/redirects
1 stars 1 forks source link

Query string retention for target URLs which already contain query string #4

Closed PhilJ closed 4 years ago

PhilJ commented 4 years ago

Hey!

We had the issue that we wanted to redirect to a target URL which contained a query string (Example: /redirect-target?foo=bar)

In the code I check if there is already a ? in the target URL and concat the retained query string from the source URL with an &.

Thank you for you work on the plugin!

Philipp

PhilJ commented 4 years ago

Hey @wanze,

thank you for merging! I`m happy that we can update then plugin in future without any manual actions.

Herzliche Grüße nach Bern! Philipp