I'm getting a URL rewrite glitch.

The scenario: web2py running through IIS using wsgi and published as a 
virtual IIS application called TEST.

Therefore the resulting URLs will always need to look like 
http://localhost/TEST/welcome/... or http://localhost/TEST/admin/...

The following routes.py mostly works:
routers = dict(
    BASE=dict(
        path_prefix='TEST',
    ),
)

Browsing to http://localhost/TEST correctly redirects to 
http://localhost/TEST/welcome and the page is displayed, same with admin 
pages when already authenticated.

The glitch occurs when admin authentication is invovled, the the generated 
URL becomes: 
http://localhost/test/admin?send=%2Fadmin%2Fedit%2Fwelcome%2Fcontrollers%2Fdefault.py
 

The redirect after the login is missing the TEST prefix so after login it 
attempts to load http://localhost/admin/edit/welcome... rather than 
http://localhost/TEST/admin/edit/welcome...

It doesn't happen for the database admin page: 
http://localhost/test/admin?send=%2Ftest%2Fwelcome%2Fappadmin
The redirect includes the TEST prefix in that case.

Am I missing something or is this a bug?




-- 
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