You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See attached file.
It'd be great to be able to pass a kwarg to the Route object which makes
trailing slashes optional. I know you can do this with a redirect, but that is
an extra request and not strictly required. It'd be great if you could add
something like in my example so it fulfils the request but makes the slash
optional.
Thanks,
Rob
Original issue reported on code.google.com by [email protected] on 22 Jan 2015 at 5:56
You can use
RedirectRoute(https://webapp-improved.appspot.com/_modules/webapp2_extras/routes
.html#RedirectRoute)
using attribute strict_slash will enforce always a trailing slash in each route.
I can see how the recirect could be useful in certain circumstances through so
I don't advise changing the current functionality. I actually added this
functionality myself by subclassing Route.
Original issue reported on code.google.com by
[email protected]
on 22 Jan 2015 at 5:56Attachments:
The text was updated successfully, but these errors were encountered: