Foros de discusión

liferay 7 - browser back button issue

thumbnail
Sravan Kumar Chalvadi, modificado hace 7 años.

liferay 7 - browser back button issue

New Member Mensajes: 3 Fecha de incorporación: 9/03/16 Mensajes recientes
Hi,

I have a Search Container with a column using href attribute.
<liferay-ui:search-container-column-text href="<%=rowURL%>" property="notificationNumber" orderableProperty="notificationNumber" name="Notification #" orderable="true" value="${resultItem.getNotificationNumber()}" />

Here rowURL is a renderURL
<liferay-portlet:renderurl varimpl="rowURL">
			<liferay-portlet:param name="mvcPath" value="/notification_details.jsp" />
			<liferay-portlet:param name="redirect" value="<%= currentURL %>" />
			<liferay-portlet:param name="notificationID" value="<%= resultItem.getNotificationNumber() %>" />
			<liferay-portlet:param name="notificationTypeCode" value="<%=resultItem.getNotificationTypeCode() %>" />
			<liferay-portlet:param name="page" value="show-notification-details" />
		  </liferay-portlet:renderurl>

Click on href, opens a page.

Current:
The issue here is on clicking the browser back button, it is sending current URL instead of previous URL to the server(portlet).
After request is served:
1# Page is not navigated to its previous page. (Incorrect)
2# And URL on client (browser) is updated to previous URL. (correct)

Expected: On back button click, page should navigate to previous page.