I think you should be able to do this:
 
auth.settings.login_url=URL('user.html', args='login')
 
 
By default, Auth.url() just passes through the extension of the original 
request. That can be useful for login-protected components because it will 
call 'user.load' instead of 'user.html' if the component was loaded with a 
.load extension.
 
Anthony
 

On Monday, May 16, 2011 8:22:53 PM UTC-4, Chris wrote:

> Hey, quick question: One of my controllers has a request that uses the 
> @auth.requires_login handler. 
>
> Problem is, when I go there and use an extension (examples: /init/ 
> default/dothis.json, /init/default/dothis.txt), I get redirected to 
> the extension version of the login page by default (/init/default/ 
> user.json/login) 
>
> It looks like the login_url is set in tools.py:831: 
>
>         self.settings.login_url = self.url('user', args='login') 
>
> Is there any simple way to override this so that I get /init/default/ 
> user/login instead of /init/default/user.json/login?

Reply via email to