Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15234

HTML Meta information about XWiki documents are incorrect in the case of translations

    Details

    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      In htmlheader.vm you have the following code

      #xwikiDataAttribute('version', $doc.version)
      
      #xwikiDataAttribute('rest-url', $[services.rest|http://services.rest/].url($doc.documentReference))
      

      In the case of a translated document it should be $tdoc.version.

      Also the rest url corresponds to the default document and not the translation.

      Also it would be nice to have language information about the document

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                atallahade Adel Atallah
                Reporter:
                ludovic Ludovic Dubost
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: