Is it possible to redirect from within a custom route?
I've created an specific route for locale detection. This works fine for paths such as:
However, if the path is missing the trailing slash I wish to create a redirect to the path with the trailing slash. I know I could do something like creating a new onRoute event, but it would be nicer (and less code) if the redirect could be made from the route itself. Any way to accomplish this?
Thanks in advance