If you just want to hide application, default controller, and default 
functions, you can do things much more simply with the parameter based 
rewrite system 
<http://web2py.com/books/default/chapter/29/04/the-core#Parameter-based-system> 
-- further documented in the example file 
<https://github.com/web2py/web2py/blob/master/examples/routes.parametric.example.py>
.

Anthony

On Saturday, May 14, 2016 at 12:54:11 PM UTC-4, Alfonso Serra wrote:
>
> Another problem.
> Since i want to get rid of the app name, default controller and index 
> actions in the url, i have added these to routes_in
>
> routes_in
> ...
> , ('/myapp/default/user/$anything', '/user/$anything')
>
> routes_out
> ...
> , ('/myapp/default/user/$anything', '/user/$anything')
>
> It works but redirecting to the login page when a controller has 
> @auth.requires_login results in 
> http://mydom.com/user/login?_next=/myapp/default/index
> When the right _next should be _next=/
>
> Auth isnt aware thats not the right url declared on routes.py. If i login 
> im redirected to a wrong url. Any way to set where to go _next?
>
> Thanks
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to