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

DXP 7.3 Open Graphロケール代替メタタグの動作明確化について

written-by

Phil Chapman

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

問題

  • Liferayサーバーは、すべてのLiferayインスタンスのロケールをOpen Graphロケール代替メタタグとして出力します。 これは想定内なのでしょうか? ページコンテンツがデフォルトのロケール(例:"en_US")のみを使用している場合、LiferayはOpen Graphロケール代替メタタグを出力すべきでしょうか?

    <meta property="og:locale" content="en_US">
    <meta property="og:locale:alternate" content="en_US">
    <meta property="og:locale:alternate" content="ar_SA">
    <meta property="og:locale:alternate" content="ca_ES">
    <meta property="og:locale:alternate" content="zh_CN">
    <meta property="og:locale:alternate" content="nl_NL">
    <meta property="og:locale:alternate" content="fi_FI">
    <meta property="og:locale:alternate" content="fr_FR">
    <meta property="og:locale:alternate" content="de_DE">
    <meta property="og:locale:alternate" content="hu_HU">
    <meta property="og:locale:alternate" content="ja_JP">
    <meta property="og:locale:alternate" content="pt_BR">
    <meta property="og:locale:alternate" content="es_ES">
    <meta property="og:locale:alternate" content="sv_SE">

Environment

  • DXP 7.3

解決策

  • はい、ページのコンテンツがデフォルトのロケール(en_USなど)しか使用していない場合でも、この動作は期待できます。 あるページは、そのサイトの現在のすべてのロケールを経由して到達可能です。 そのため、ページのコンテンツが利用可能なすべての言語に到達可能かどうかにかかわらず、オープングラフのメタタグはデフォルトでこの挙動に従います。

追加情報

  • Liferay DXP 7.4では、SEOをさらにコントロールできるように設計された、この 機能要求が含まれるようになりました。 この新機能は、以下の項目で確認することができます: コントロールパネル > システム設定 > ページ > SEO対策:翻訳されたフレーズのみを有効にする

did-this-article-resolve-your-issue

legacy-knowledge-base