There seems to be a problem with login_next and routes. I have a site called spinjazz.net
My routes.py in the web2py directory directs to folder 'new_spin2' In the new_spin2 folder I have (r'.*://spinjazz.net:\w* /$anything', r'/new_spin2/default/$anything'), so spinjazz.net/index routes to new_spin2/default/index as I want. However if I put @auth.requires_login() in front of def book_now() then if people click on a 'book_now' button when they are not logged in, they are correctly sent to login. However after logging in, they are redirected to spinjazz.net/new_spin2/default/book_now which does not really seem right to me. I have a routes_out routes_out = (('/new_spin2/default/(?P<any>.*)', '/\g<any>'),) and this seems to be being ignored. With an earlier version of web2py (2.2.1) things worked correctly. It is not a problem to me as I can add (r'.*://spinjazz.net:\w* /new_spin2/default/$anything', r'/new_spin2/default/$anything'), to routes.py but it seems like a bug to me. Peter -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.