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

Revision links are not language-aware and can point to incorrect revisions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 17.10.4
    • None
    • Unknown

    Description

      Revision links (links displayed on the revisions in the history tab table) generated from the document history do not include the language of the page being viewed.

      As a result, the link may point to a non-existent or incorrect revision if the recipient has a different default language.

      Steps to reproduce:

      1. Create a page with two language translations (e.g. French and English), with different revision histories.
      2. Set the default language to French (Profile → Language → French).
      3. Open the multilingual page without specifying a language in the URL.
      4. From the “History” section, copy a revision link (note that it does not include the language parameter).
      5. Change the profile language to English.
      6. Open the copied link.

      Actual result:
      The link opens the English version of the page and:

      • either displays a different revision than expected, or
      • fails if the revision does not exist in English.

      Expected result:
      The revision link should include the language in the URL and always point to the exact revision from which it was generated (e.g. French revision in this case).

      Impact:
      Revision links are not reliable or shareable across users with different language settings, as they are neither permanent nor unique.

      Workaround:
      Manually add the language parameter to the URL (e.g. &language=fr) before sharing the link.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            dmure Damien Mure
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: