This cannot be fixed at the level of gluon/tools.py because some users may
want an ajax login form. Those users should be free to create a
default/user.load view.
In your case you simply need to do (in model):
auth.settings.url_login = URL('default','user',args='login',
extension=False)
On Wednesday, 18 September 2013 08:51:08 UTC-5, Richard wrote:
>
> Adding extention='html' at line 1163 in tools.py seems to solve the issue :
>
> url_login = URL(controller, function, args='login', extension='html')
>
> Or extension=False
>
> url_login = URL(controller, function, args='login', extension=False)
>
> The latter probably better
>
> Richard
>
>
>
> On Wed, Sep 18, 2013 at 9:37 AM, Richard <[email protected]<javascript:>
> > wrote:
>
>>
>> Hello,
>>
>> In case a component trigger a NOT AUTHORIZED popup, the login redirect
>> link propagate the .load of the component :
>>
>> NOT AUTHORIZEDPlease
>> login<http://127.0.0.1:8000/sgddms/default/user.load/login?_next=http%3A//127.0.0.1%3A8000/sgddms/default/index%23>
>> to
>> view this content.
>>
>>
>> The link look like that : http://127.0.0.1:8000/app/default/user*.load*
>> /login?_next=url...
>>
>> This occure in web2py 2.4.7
>>
>> Richard
>>
>> --
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
--
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/groups/opt_out.