Foros de discusión
Forward to default landing page from update password page
Kha N Nguyen, modificado hace 14 años.
Forward to default landing page from update password page
Junior Member Mensajes: 89 Fecha de incorporación: 22/11/09 Mensajes recientes
Hi all,
I am working on EXT env.
I configured default.landing.page.path in the portal-ext.properties.
I have developed and deployed my theme successfully.
After I log in successfully, I can be sent to the default landing page.
But, when I do Forgot Password function, after I change my temporary password at update_password.jsp successfully, I am still on the update_password.jsp. After I hit F5, the default landing page is displayed.
How can I go to the default landing page without F5 after I change my temporary password at update_password.jsp?
Thanks a lot,
Kha
I am working on EXT env.
I configured default.landing.page.path in the portal-ext.properties.
I have developed and deployed my theme successfully.
After I log in successfully, I can be sent to the default landing page.
But, when I do Forgot Password function, after I change my temporary password at update_password.jsp successfully, I am still on the update_password.jsp. After I hit F5, the default landing page is displayed.
How can I go to the default landing page without F5 after I change my temporary password at update_password.jsp?
Thanks a lot,
Kha
Shagul Khaja, modificado hace 14 años.
RE: Forward to default landing page from update password page
Liferay Master Mensajes: 758 Fecha de incorporación: 27/09/07 Mensajes recientes
Hey Kha,
The portal source has the answer for it. I did a quick look up and this is what I found.
UpdatePasswordAction:
referer_js.jsp - ActionConstants.COMMON_REFERER forward does the following
sets the location to the referer ( the page from where you came).
Portal source struts-config.xml defines the above forward.
You could override them in the ext environment.
Hope this helps you proceed further.
Best,
Shagul
The portal source has the answer for it. I did a quick look up and this is what I found.
UpdatePasswordAction:
return mapping.findForward(ActionConstants.COMMON_REFERER);
referer_js.jsp - ActionConstants.COMMON_REFERER forward does the following
<script type="text/javascript">
location.href = '<%= UnicodeFormatter.toString(referer) %>';
</script>
sets the location to the referer ( the page from where you came).
Portal source struts-config.xml defines the above forward.
You could override them in the ext environment.
Hope this helps you proceed further.
Best,
Shagul
Kha N Nguyen, modificado hace 14 años.
RE: Forward to default landing page from update password page
Junior Member Mensajes: 89 Fecha de incorporación: 22/11/09 Mensajes recientesShagul Khaja:
Hey Kha,
The portal source has the answer for it. I did a quick look up and this is what I found.
UpdatePasswordAction:return mapping.findForward(ActionConstants.COMMON_REFERER);
referer_js.jsp - ActionConstants.COMMON_REFERER forward does the following<script type="text/javascript"> location.href = '<%= UnicodeFormatter.toString(referer) %>'; </script>
sets the location to the referer ( the page from where you came).
Portal source struts-config.xml defines the above forward.
You could override them in the ext environment.
Hope this helps you proceed further.
Best,
Shagul
I have tried but I am not success.