legacy-knowledge-base
公開されました Sep. 10, 2025

ページのクエリストリングを追加しても、URLに追加されない。

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

learn-legacy-article-disclaimer-text

問題

  • ページ -> 詳細設定でクエリストリングを追加しても、ページURLにクエリストリングが付加されない。キャプチャ.PNG

環境

  • Liferay DXP 7.1+

解決策

  • クエリストリングのパラメータは、遷移先のページURLに付加されません。 
    リクエストがバックエンドに到達時に、パラメータが付加されます。
  • 以下は、クエリストリングの動作例です:
    1. 「Home」ページに「ログイン」ポートレットを追加する。
    2. 「Home」 ページの「設定」をクリックします。
    3. 共通>URL>検索文字列 から、パラメータを以下のように変更します。
      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. 「Home」ページに戻る。
      結果: URLはそのまま http://localhost:8080/web/guest/home. しかし、サインインポートレットの「アカウント作成」コンテンツが表示されます。 添付のスクリーンショットをご参照ください。

    スクリーンショット 2025-08-13 7.29.52.png

  • クエリ文字列をURLに付加してエンドユーザーに公開するためには、カスタマイズが必要です。
did-this-article-resolve-your-issue

legacy-knowledge-base