Can you show the code used to create the navbar? Is it just auth.navbar(mode="dropdown")? The logout link on the navbar should point to /appname/default/user/logout?_next=[URL of the current page] -- it should not point to /default/user/login at all.
Anthony On Wednesday, May 8, 2013 10:16:51 AM UTC-4, José Manuel López wrote: > > Hi Anthony, > Thank you for your answer. > I've attached a screenshot, I mean the button in the bar over the user > interface: > > > <https://lh5.googleusercontent.com/-jiao9-CTeYQ/UYpdspnYmHI/AAAAAAAAACo/cFu6REJXGxQ/s1600/Captura+de+pantalla+2013-05-08+a+la%28s%29+16.13.39.png> > > When click over "Fin de sesión" (close session) we are redirect to a login > page with this URL: AppName/*default/user/login*?_next=/AppName/* > default/index* instead AppName/*default/user/login*?_next= > /AppName/*normalController/index > .* > I hope this clarify the question. > > > On Wednesday, May 8, 2013 4:04:53 PM UTC+2, Anthony wrote: >> >> What do you mean by "close the session"? >> >> On Wednesday, May 8, 2013 9:58:13 AM UTC-4, José Manuel López wrote: >>> >>> Hi!, >>> I'm a lost with this problem, maybe anyone can help me. >>> Let's say I'm logged in this route: /AppName/*normalController*/*index*, >>> and then close the session. >>> Why when I close the session web2py redirects me to this URL? ->> >>> AppName/*default/user/login*?_next=/AppName/*default/index* , I was >>> expecting something like: AppName/*default/user/login*?_next= /AppName/* >>> normalController/index *?. Why I think that?, because normalController >>> is where the user comes... Is there any way to do it?, now when the user >>> close the session and try to log in again, the destiny is >>> /AppName/*default/index >>> , *and this is a problem because they don't have privileges to log in >>> and the feeling is that the application is not working ok. >>> >>> Thank you for your help! >>> >> -- --- 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/groups/opt_out.

