Legacy Knowledge Base
公開されました Jul. 2, 2025

HTML Fragments内のStaging URLは、公開時にLive URLに変換されない。

Written By

Amit Tiwari

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.

問題

再現までの手順

元々はDXP-7にパッチを当てた7.2バンドルでテストしたものです。
1. Help
2という新しいウィジェットページを作成します。 [Site_Administration] > Publishing > Stagingで、Local Live stagingを有効にし、デフォルトのまま
3. ヘルプページのステージングURL(http://[host/port]/web/guest-staging/help)をコピーする
4. 新規コンテンツページ「テストページ」を作成する
5. テストページ
に HTML フラグメントを配置する 6. フラグメントを編集して以下を追加し、変更内容を公開します:

 <h1>
  Staging URL testing
 </h1>
<p> <a href="http://[host/port]/web/guest-staging/help">Staging URL Link</a> </p>

7. リンクが期待通りに動作することを確認する
8. Live
9にページを公開する。 ライブサイトに移動し、テストページにアクセスし、追加されたリンクに移動しようとします。

期待される結果 Live サイトのリンクは、対応する Live ページを指すようになる
実際の結果です: ステージングから公開されたリンクは、ステージングページ(web/guest-staging/help)を指し、web/guest/helpで期待されたライブページではありません(ユーザーを認証にリダイレクトし、その後、管理者でない場合はステージングページにまだアクセスできない)。

Environment

  • Liferay DXP 7.3

解決策

  • 観測された動作は、 の既知の問題/バグであり、 dxp-2 で修正されています。
  • この問題に対してHotfixが必要な場合は、パッチの詳細を添付して、Hotfixを要求するサポートチケットを作成してください。
  • Liferay DXPへのFix PackとHotfixのインストール このHotfixを各環境にインストールするためのガイドを示します。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base