Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-110354

Allow site admins to configure if hreflang tags in pages are filled only for the translated languages

    Details

      Description

      As a marketer

      I want Liferay to fill the hreflang tag in pages only for translated languages

      so that my site do not get penalized over partially translated content

       

      At site level, allow a configuration at page level so hreflang meta tags are only filled for languages with at least one field translated. For display pages, it will happen if the language is considered translated. If enabled, pages won't include hreflang tags for languages not translated.

       

      Acceptance criteria

      Given a site with multiple languages set 

      And the configuration for partially translated sites activated

      When a user accesses a page translated to a subset of those languages

      Then Liferay will fill the hreflangs only for the translated languages

       

      Given a site with multiple languages set 

      And the configuration for partially translated sites activated

      When a user accesses a display page of a content translated to a subset of those languages

      Then Liferay will fill the hreflangs only for the translated languages

       

      Given a site with multiple languages set 

      And the configuration for partially translated sites activated

      When a user accesses a page not translated

      Then Liferay will fill the hreflangs only for the translated languages

      And the canonical URL will correspond to the one of the default language

       

      Given a site with multiple languages set 

      And the configuration for partially translated sites activated

      When a user accesses a display page page not translated

      Then Liferay will fill the hreflangs only for the translated languages

      And the canonical URL will correspond to the one of the default language

       

      Test Scenarios

      ID Test Priority Test Scenarios Covered by Backend (Unit/Integration)? Test to add
        5 Users can enable the "Only Translated Hreflangs" feature from the system settings No TranslationsSEO#CanViewTranslatedLanguageHreflangTagOnWidgetPage 
        5 Users can enable the "Only Translated Hreflangs" feature from the instance settings No  TranslationsSEO#CanViewTranslatedLanguageHreflangTagOnContentPage 
        5 Users can enable the "Only Translated Hreflangs" feature from the site settings  No TranslationsSEO#CanViewTranslatedLanguageHreflangTagOnDisplayPage 
        5 Hreflang tag can be generated only for translated languages on the widget page Yes  TranslationsSEO#CanViewTranslatedLanguageHreflangTagOnWidgetPage
        5 Hreflang tag can be generated only for translated languages on the content page Yes  TranslationsSEO#CanViewTranslatedLanguageHreflangTagOnContentPage 
        5 Hreflang tag can be generated only for translated languages on the display page Yes  TranslationsSEO#CanViewTranslatedLanguageHreflangTagOnDisplayPage 
        5 Only the hreflang tag of the translated page is displayed when a user accesses an untranslated widget page Yes  TranslationsSEO#CanViewTranslatedLanguageHreflangTagOnWidgetPage
        5 Canonical URL will correspond to the default language when a user accesses an untranslated widget page No  TranslationsSEO#CanViewTranslatedLanguageHreflangTagOnWidgetPage
        5 Only the hreflang tag of the translated page is displayed when a user accesses an untranslated content page No  TranslationsSEO#CanViewTranslatedLanguageHreflangTagOnContentPage 
        5 Canonical URL will correspond to the default language when a user accesses an untranslated content page  No TranslationsSEO#CanViewTranslatedLanguageHreflangTagOnContentPage 
        5 Only the hreflang tag of the translated page is displayed when a user accesses an untranslated display page No  TranslationsSEO#CanViewTranslatedLanguageHreflangTagOnDisplayPage 
        5 Canonical URL will correspond to the default language when a user accesses an untranslated display page No  TranslationsSEO#CanViewTranslatedLanguageHreflangTagOnDisplayPage 
        4 All languages hreflang tag will be displayed after disabling OTH from SEO settings Yes  TranslationsSEO#CanViewAllHreflangTagsAfterDisabling 
        4 All languages hreflang tag of an untranslated page can be viewed when the OTH is disabled  Yes TranslationsSEO#CanViewPageDefaultHreflangTags 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              austin.chiang Austin Chiang
              Reporter:
              pablo.agulla Pablo Agulla
              Engineering Assignee:
              SE Support
              Recent user:
              Sophia Zhang
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.4.13 DXP GA1
                  7.4.3.4 CE GA4
                  Master