Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Anonymous user login not redirected
I have the following set in my portal properties:
when an anonymous user tries to access a page that requires authentication (in my case: /web/guest/secure) the user is still redirected to web/guest/home
auth.login.community.url = /login
auth.login.url = /web/guest/login
when an anonymous user tries to access a page that requires authentication (in my case: /web/guest/secure) the user is still redirected to web/guest/home
Got this working, but now if I set
My redirect after login for anonymous users goes to /web/guest/home instead of the last page that needed authentication. (For example they try to access /web/guest/secure, asked to login, and then redirected to /web/guest/home instead of /web/guest/secure)
default.landing.page.path=/web/guest/home
My redirect after login for anonymous users goes to /web/guest/home instead of the last page that needed authentication. (For example they try to access /web/guest/secure, asked to login, and then redirected to /web/guest/home instead of /web/guest/secure)
Interesting. I notice the url query string for redirect has an additional name ("_58_") at an anonymous login:
...&_58_struts_action=%2Flogin%2Flogin&_58__58_redirect=%2Fweb%2Fguest%2Fsecure
if I change it to:
...&_58_struts_action=%2Flogin%2Flogin&_58_redirect=%2Fweb%2Fguest%2Fsecure
it works.
Anyone know what's going on?
...&_58_struts_action=%2Flogin%2Flogin&_58__58_redirect=%2Fweb%2Fguest%2Fsecure
if I change it to:
...&_58_struts_action=%2Flogin%2Flogin&_58_redirect=%2Fweb%2Fguest%2Fsecure
it works.
Anyone know what's going on?