Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
bridge-impl-2.0.0, bridge-impl-3.0.0, bridge-impl-4.0.0, bridge-impl-5.0.0
-
None
Description
{markdown}
Steps to reproduce:
1. Deploy the jsf-showcase-portlet to Liferay Portal.
2. Navigate to the `h:commandButton` Navigation use case (http://localhost:8080/web/guest/jsf-showcase/-/jsf-tag/h/commandbutton/navigation(http://localhost:8080/web/guest/jsf-showcase/-/jsf-tag/h/commandbutton/navigation)).
3. Click the To Param page > button.
If the bug still exists, the URL will contain `_jsfBridgeRedirect=true`:
http://localhost:8080/web/guest/jsf-showcase/-/jsf-tag/h/commandbutton/param?_1_WAR_comliferayfacesdemojsfshowcaseportlet__jsfBridgeRedirect=true
If the bug is fixed, it will not contain the parameter:
http://localhost:8080/web/guest/jsf-showcase/-/jsf-tag/h/commandbutton/param
*Note:* the parameter appears for both Ajax and non-Ajax redirects. Although in Ajax redirects the parameter is not namespaced.
The parameter should be removed in [BridgeActionURLImpl](https://github.com/liferay/liferay-faces-bridge-impl/blob/4.x/bridge-impl/src/main/java/com/liferay/faces/bridge/internal/BridgeURLActionImpl.java#L103).
{markdown}
Steps to reproduce:
1. Deploy the jsf-showcase-portlet to Liferay Portal.
2. Navigate to the `h:commandButton` Navigation use case (http://localhost:8080/web/guest/jsf-showcase/-/jsf-tag/h/commandbutton/navigation(http://localhost:8080/web/guest/jsf-showcase/-/jsf-tag/h/commandbutton/navigation)).
3. Click the To Param page > button.
If the bug still exists, the URL will contain `_jsfBridgeRedirect=true`:
http://localhost:8080/web/guest/jsf-showcase/-/jsf-tag/h/commandbutton/param?_1_WAR_comliferayfacesdemojsfshowcaseportlet__jsfBridgeRedirect=true
If the bug is fixed, it will not contain the parameter:
http://localhost:8080/web/guest/jsf-showcase/-/jsf-tag/h/commandbutton/param
*Note:* the parameter appears for both Ajax and non-Ajax redirects. Although in Ajax redirects the parameter is not namespaced.
The parameter should be removed in [BridgeActionURLImpl](https://github.com/liferay/liferay-faces-bridge-impl/blob/4.x/bridge-impl/src/main/java/com/liferay/faces/bridge/internal/BridgeURLActionImpl.java#L103).
{markdown}