resource_router icon indicating copy to clipboard operation
resource_router copied to clipboard

Prevent slash at end of the URL

Open roberthallatt opened this issue 8 years ago • 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

roberthallatt avatar Jan 31 '17 21:01 roberthallatt

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

rsanchez avatar Feb 01 '17 15:02 rsanchez

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.

roberthallatt avatar Feb 01 '17 15:02 roberthallatt