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

Can't create a link to the current page or to one of its sections from the BlockNote link modal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 18.10.0-rc-1
    • 18.7.0
    • BlockNote
    • None
    • Unit, Integration
    • Unknown

    Description

      Steps to reproduce

      1. Edit a page with the BlockNote editor.
      2. Select a word, then click the link button of the formatting toolbar (or type /link in an empty paragraph).
      3. Leave the link type to "Page" and the page reference empty, expand the "Options" section and set the anchor of a section of the current page, e.g. HSection.
      4. Submit the link modal.

      Actual result

      Nothing happens: no link is created. When a display text is typed, a link is created, but it's not saved as a link to the current page.

      Expected result

      A link to the section of the current page is created, and saved with an empty reference, as XWiki Rendering supports it: [[label>>||anchor="HSection"]]. Likewise, a link with an empty page reference and no anchor nor query string should link to the current page: [[label>>]]. Editing such a link should keep its page reference empty.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: