Open GoogleCodeExporter opened 8 years ago
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.
Original comment by jandro.c...@gmail.com
on 26 Feb 2015 at 11:04
RedirectRoute requires a redirect which is costly. There is no need for a
browser redirect in this case as webapp2 could just return the content.
Original comment by r...@appinstitute.co.uk
on 26 Feb 2015 at 11:13
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 comment by r...@appinstitute.co.uk
on 26 Feb 2015 at 11:14
That's True.. How do you actually subclass Route? I mean how do you add this
functionality?
Original comment by jandro.c...@gmail.com
on 26 Feb 2015 at 4:43
Original issue reported on code.google.com by
r...@appinstitute.co.uk
on 22 Jan 2015 at 5:56Attachments: