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

ページタイプ「URLへのリンク」が相対的なURLでは機能しない

written-by

Prarthana Jadhav

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へのリンク」というタイプのページを作成中、
      • Absolute URLが指定された場合、ページは正常に作成され、それぞれのリンクにリダイレクトされます。
      • "/ web/guest/e-learning1"などの相対URLが指定されている場合、ページは正常に作成されますが、それぞれのリンクにリダイレクトされず、リソースが見つかりませんというエラーがスローされます。
    The requested resource could not be found. 

    http://localhost:8080/web/guest/e-learning1?p_p_id=elTransaction_WAR_elTransaction&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&actionType=installmentPayment

環境

  • Liferay DXP 7.0,
  • Liferay DXP 7.1

解像度

  • "Link to Url" ページタイプの機能は、相対URLではなく絶対URLで動作することが期待されているため、これはLiferayの意図した動作です。
  • リンクに記載されている相対URLがホストとマッピングされてしまうため、上記のエラーが発生します。 このページがサイトから消えているため、エラーとなります。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base