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

Always add relative references from the Wysiwyg link / image wizards

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.9, 2.0 M1
    • 1.9 M2, 1.8.4
    • WYSIWYG Editor
    • None
    • Integration
    • Unknown

    Description

      Currently, the references (to linked pages and images) added by the Wysiwyg link / images wizard use full references such as (after transformation in wiki syntax):

      [[label>>xwiki:Main.WebHome]] 
      [[image:xwiki:Main.WebHome@attachedImage.png]]
      

      They shoud be minimal in the sense of containing as less redundant information as possible (no space & wiki if the linked page is in the same space, no wiki if the linked page is in the same wiki, etc, no wiki, space, page if the linked file is attached to the current page):

      [[link to page in the same wiki>>Space.Page]]
      [[link to page in the same space>>PageName]]
      [[link to file attached to this page>>attach:filename]]
      [[image:attachedImage.png]]
      

      Attachments

        Activity

          People

            lucaa Anca Luca
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: