Redirect from within a route

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Redirect from within a route

Juan Pedro Gonzalez
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:
/en//es//fr/...
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    
Reply | Threaded
Open this post in threaded view
|

Re: Redirect from within a route

Ben Scholzen 'DASPRiD'
CONTENTS DELETED
The author has deleted this message.