rsanchez/resource_router

Prevent slash at end of the URL

Opened this issue · 2 comments

Hi,

How would I prevent the following from being a valid URL:

http://www.cps.local/en/about-apropos/strategic-directions/////

My template route looks like this - 'about-apropos/?([-_a-zA-Z0-9]+)'

Is there something I'm missing or could this be a bug?

Thanks,

Rob

I think this would be best handled in your web server configuration, whether apache or nginx.