留言板

Forward to default landing page from update password page

Kha N Nguyen,修改在14 年前。

Forward to default landing page from update password page

Junior Member 帖子: 89 加入日期: 09-11-22 最近的帖子
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
thumbnail
Shagul Khaja,修改在14 年前。

RE: Forward to default landing page from update password page

Liferay Master 帖子: 758 加入日期: 07-9-27 最近的帖子
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
Kha N Nguyen,修改在14 年前。

RE: Forward to default landing page from update password page

Junior Member 帖子: 89 加入日期: 09-11-22 最近的帖子
Shagul 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.