On Monday, October 24, 2011 2:01:52 PM UTC-4, Omi Chiba wrote:
>
> For example, I have two menus (Home and Menu1) and Menu1 requires
> login. Now, I login when I'm at Home, it redirect me to Menu1.
>
What do you mean "log in when I'm at Home"? Is there a login form on the
home page, or do you click a login link and then go to a login page (e.g.,
/app/default/user/login)?
Is auth.settings.login_next set to URL('default', 'menu1')?
Generally, if you try to go to a page that requires login, you should be
redirected to the login page, and then redirected back to the original page
after login. However, if you just go directly to the login page/form, after
login, you should be redirected to auth.settings.login_next, which defaults
to URL('index').
Anthony