Query String is not append to the URL, after adding it through Pages > Advanced setting

Issue

  • Query String is not appended to page URL after adding it through Pages -> Advanced settings.Capture.PNG

Environment

  • Liferay DXP 7.1

Resolution

  • The Query String Parameter won’t be appended to the URL as it is meant to be the default and hidden behind the page. This is the expected behavior.
  • The following is an example of how Query String works:
    1. Add a "Sign In" portlet to the “Welcome” page.
    2. Navigate to Liferay DXP site > Build > Pages, click "Configure" for the "Welcome" page.
    3. In Advanced > Query String, Change the parameter as below.
      p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=0&p_p_mode=view&saveLastPath=false&_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName=%2Flogin%2Fcreate_account.
    4. Go back to the "Welcome" page. 
      Result: The URL is still http://localhost:8080/web/guest/home. However, the "Create Account" content in Sign in portlet is displayed on the Welcome page. Refer to the attached screenshot.

    Capture2.PNG

  • To append the query string to the URL and reveal it to the end-user in the URL, customization is needed.
这篇文章有帮助吗?
0 人中有 0 人觉得有帮助