I think we will need more code to understand. What you are doing is not
"standard". Notice also, Bootstrap Modal had bug in the pass and was
submitting all the form present on the same page... I wrote a post about
that. I don't think this issue is gone and I think I had found a work
around but don't remember...

Search the group about "Modal issue form submit" as keyword.

Hope it helps

Richard


On Tue, Sep 24, 2013 at 3:42 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> Or without c and f:
>
> auth.settings.login_next = URL('default', 'index')
>
>
> On Tuesday, 24 September 2013 13:29:27 UTC-5, Richard wrote:
>
>> You can use this in model :
>> auth.settings.login_next = URL(c='default', f='index')
>>
>> Richard
>>
>>
>> On Tue, Sep 24, 2013 at 2:09 PM, raferbop <rafe...@gmail.com> wrote:
>>
>>> def index():
>>>    return dict(logform=auth.login(),**regform=auth.register())
>>>
>>> I put these two forms from the Auth module on the index page, inside a
>>> modal but when I login/register I am redirected to a profile page instead
>>> of the index page. What can I do to prevent the redirect or go the index
>>> page?
>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/**web2py 
>>> <http://github.com/web2py/web2py>(Source code)
>>> - 
>>> https://code.google.com/p/**web2py/issues/list<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+un...@**googlegroups.com.
>>>
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<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 web2py+unsubscr...@googlegroups.com.
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to