Legacy Knowledge Base
Published Sep. 10, 2025

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

Written By

Aaron Wang

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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.
Did this article resolve your issue ?

Legacy Knowledge Base