Legacy Knowledge Base
Publicado Jul. 25, 0002

DXP 7.3 Behavior Clarification for Open Graph locale alternate meta tags

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

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.

Issue

  • The Liferay server outputs all Liferay instance locales as Open Graph locale alternate meta tags. Is this expected? Should Liferay output Open Graph locale alternate meta tags, when page content only uses the default locale (e.g. "en_US")?

    <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

Resolution

  • Yes, the behaviour is expected even when the page content only uses the default locale (such as en_US). A given page is reachable via all of its site's current locales. So, regardless if the page's content is reachable to all available languages or not, Open Graph meta tags by default follow this behaviour.

Additional Information

  • Liferay DXP 7.4 has seen the inclusion of this feature request, designed to give further control over SEO. This new functionality can be found under: Control Panel > System Settings > Pages > SEO: Enable Only Translated Hreflangs

 

Did this article resolve your issue ?

Legacy Knowledge Base