legacy-knowledge-base
公開されました Jul. 2, 2025

webcontent の getFriendlyUrl() は、ページ レイアウト ID を取得します

written-by

Ankit Gupta

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

問題

  • 再現する手順

    1. ウィジェットページ「Test Page」を作成し、ページのフレンドリURLを「/test」に変更し、Webコンテンツ表示ウィジェット
      2を追加します。 Site Administration > Content and Data > Web Content > Structures に移動し、Test Structure
      3 という名前の新しい構造を作成します。 Link to Page フィールドを追加し、
      4 を保存します。 Templates タブに移動し、Test Structure
      5 に基づいて Test Template という名前の新しいテンプレートを作成します。 Link to Page フィールドを追加し、
      6 を保存します。 [Web コンテンツ] タブに移動し、"Test Web Content"
      7 という名前のテスト テンプレートを使用して新しい Web コンテンツを作成します。 [ページへのリンク] フィールドで [テスト ページ] を選択し、
      8 を保存します。 Web コンテンツ表示ウィジェット
      9 に Test Web Contents を追加します。 リンクをコピーする

    テストの結果

    期待される結果: リンク URL は http://localhost:8080/web/guest/testです。

    実際の結果: リンク URL は http://localhost:8080/web/guest/4です。

Environment

  • Liferay DXP 7.3

解決策

  • 観察された動作は既知の問題であり、 liferay-fix-pack-dxp-2 以降で修正されています。
  • この問題に修正プログラムが必要な場合は、修正プログラムの詳細を添付して、修正プログラムを要求するサポート チケットを作成してください。
  • Liferay DXP へのフィックスパックとホットフィックスのインストール は、環境にこれらのフィックスパックをインストールするためのガイドです。
did-this-article-resolve-your-issue

legacy-knowledge-base