riasvdv / statamic-redirect

Redirect allows you to redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website.
https://statamic.com/addons/rias/redirect
19 stars 21 forks source link

add delete_entry_conflicting_redirects config setting #119

Closed galengidman closed 1 year ago

galengidman commented 1 year ago

This adds a config setting to bypass the automatic deleting of redirects which would conflict with entry URIs. See #117. I've also had issues where Redirect::findByUrl matched entry URI /foobar/abc123 to regex redirect /abc123(.*) and deleted the redirect — so really need a way to at least bypass this.

riasvdv commented 1 year ago

I've changed the comparison to be case sensitive, but this still is a nice feature to have 👍

galengidman commented 1 year ago

Awesome, thanks for getting this in so quickly!