terminal42 / contao-url-rewrite

Provides a back end module in Contao that allows you to specify url rewrites that are added to the Symfony Route collection
MIT License
15 stars 4 forks source link

Allow to priorize rewrite rules #16

Closed dmolineus closed 5 years ago

dmolineus commented 5 years ago

This pull request allows to priorize database defined rewrite rules. It's usefull if a pattern is defined as fallback and other rules should be checked before:

/foo/bar -> 301 /example/baz-bar
/foo/{path} -> 301 /example/{path}

By priorizing the first rule of the example it doesn't matter when it's created in the backend.

Toflar commented 5 years ago

That looks correct to me 👍 Thanks for the PR!

Toflar commented 5 years ago

Thank you @dmolineus! I want to release 1.3.0 asap because of the cache bugfix. Would be great if you could review and test the develop branch on your projects 👍