This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8332446d-4507-4b95-a76b-d8edd531d755 XWIKI-25726 Open

The BlockNote link modal creates links with absolute references

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6e4f26f6-eede-40d1-8da9-6f20f203039c Marius Dumitru Florea created this issue on 10/Nov/26 18:06
 
Summary: The BlockNote link modal creates links with absolute references
Issue Type: cid:jira-generated-image-avatar-8332446d-4507-4b95-a76b-d8edd531d755 Bug
Affects Versions: 18.9.0
Assignee: Unassigned
Components: BlockNote
Created: 10/Nov/26 18:06
Priority: cid:jira-generated-image-static-major-37c80c29-4af2-482a-9080-6210958e9465 Major
Reporter: Marius Dumitru Florea
Description:

Steps to reproduce

  1. Edit the page Space.Page with the BlockNote editor.
  2. Insert a link to the sibling page Space.Other, or to an attachment of the edited page, picking it from the link modal suggestions.
  3. Save and look at the wiki syntax.

Expected

The link references are relative to the edited page, like the WYSIWYG editors and the BlockNote image quick action produce them: [[Other>>doc:Other]], [[cat.png>>attach:cat.png]]. This way the links keep working when the page is renamed or copied, and the wiki is left out when the target is in the same wiki.

Actual

The links have absolute references, including the wiki: [[Other>>doc:xwiki:Space.Other]], [[cat.png>>attach:xwiki:Space.Page@cat.png]].

When editing back a link, its reference also shows up in the link target field with its resource type prefix (e.g. doc:xwiki:Space.Other).

Cause

The link modal doesn't know which document holds the link, so it can neither serialize the selected reference relative to it nor resolve a relative reference (e.g. cat.png is resolved to an attachment without a page).

 
 

2 updates

 
cid:jira-generated-image-avatar-6e4f26f6-eede-40d1-8da9-6f20f203039c Changes by Marius Dumitru Florea on 10/Nov/26 18:06
 
Fix Version: 18.10.0-rc-1
Assignee: Marius Dumitru Florea