• Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • 3.7
    • None
    • None
    • None

      The hreflang tag should be added on pages :

      <head> 
      <link rel="alternate" hreflang="en" href="/en/index.html#"> 
      </head> 
      

          [CMS-5838] hreflang is missing

          Fixed as invalid for last reopen.

          Laurence Aumeunier added a comment - Fixed as invalid for last reopen.

          Virtual pages on blog can not have translations

          Laurence Aumeunier added a comment - Virtual pages on blog can not have translations

          Laure Lopez added a comment -

          This value

          <translations><en>page://d714ded7-9589-4916-b155-fb1491e79474</en></translations>

          seems to be missing in /cms/page/metadata/ on blogs.

          Laure Lopez added a comment - This value <translations><en>page: //d714ded7-9589-4916-b155-fb1491e79474</en></translations> seems to be missing in /cms/page/metadata/ on blogs.

          Add this piece of XSL code in your skin (<head> section)

          <xsl:for-each select="/cms/page/metadata/translations/*">
                      <link rel="alternate" href="{resolver:resolve('page', .)}" hreflang="{local-name()}" />
          </xsl:for-each>
          

          It was done for demo skins.

          Laurence Aumeunier added a comment - Add this piece of XSL code in your skin (<head> section) < xsl:for-each select= "/cms/page/metadata/translations/*" > <link rel= "alternate" href= "{resolver:resolve( 'page' , .)}" hreflang= "{local-name()}" /> </ xsl:for-each > It was done for demo skins.

          It is required on the links to translated page "on the top of the page"
          https://support.google.com/webmasters/answer/6059209
          https://support.google.com/webmasters/answer/189077

          It could be nice to set-up on the sitemap.xml
          https://support.google.com/webmasters/answer/2620865

          Obviously it should be available on translated sites.

          Frederic Ravetier (Inactive) added a comment - It is required on the links to translated page "on the top of the page" https://support.google.com/webmasters/answer/6059209 https://support.google.com/webmasters/answer/189077 It could be nice to set-up on the sitemap.xml https://support.google.com/webmasters/answer/2620865 Obviously it should be available on translated sites.

            laurence Laurence Aumeunier
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: