bnomei / kirby3-redirects

Setup HTTP Status Code Redirects from within the Kirby Panel
https://forum.getkirby.com/t/kirby3-redirects-setup-http-status-code-redirects-form-within-the-panel/23581
MIT License
22 stars 2 forks source link

Add option to ignore or respect trailing slashes #10

Closed gearsdigital closed 4 years ago

gearsdigital commented 4 years ago

I wonder if it would make sense to have an option to define wether a trailing slash is respected or not. Right now I need to add two redirects for the same resource.

1./test -> /test-new

  1. /test/ -> /test-new

We could surly add a rule to the .htaccess and remove all trailing slashes intially but that would result in two redirects (one by the webserver and one by your plugin) which is a bit messy and totally unnecessary.

What do you think about that idea?

bnomei commented 4 years ago

supported in 1.5.3

gearsdigital commented 4 years ago

Awesome! Thank you for fixing this 👍