resource_router
resource_router copied to clipboard
Prevent slash at end of the URL
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.
Ok, thanks for getting back to me. That’s one of the options I have been studying.
Robert Hallatt
Full Stack Developer
Canadian Paediatric Society
(613) 526-9397 ext. 241
www.cps.cahttp://www.cps.ca
On Feb 1, 2017, 10:04 AM -0500, Rob Sanchez [email protected], wrote:
I think this would be best handled in your web server configuration, whether apache or nginx.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/rsanchez/resource_router/issues/42#issuecomment-276680123, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGxDY244JeDlC4VHK4KYzvphCImyeaULks5rYJ7IgaJpZM4LzLPA.