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

Link to unexisting document produce "parent" query string when parsed back from XHTML

    XMLWordPrintable

Details

    • Integration
    • Unknown

    Description

      A parent information is dynamically added to a document link when producing the XHTML when the document does not exist. The problem is that XHTML parser expect the query string in the href to be the source one and does not know that parent parameter is dynamically generated.

      The result is that when you have a page containing
      [[doc:unexistingdocument]]
      edit with the WYSIWYG and then save, it becomes
      [[doc:unexistingdocument?parent="thecurrentpage"]]

      The solution is to save everything Link object is containing in the XHTML marker to not loose it.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: