This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-1b5cba7b-84bb-46f4-ae0b-c2a6f7ed0ba9 XWIKI-25731 Open

Accept URLs without a scheme in the URL link target of the BlockNote link modal

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-18ed623b-ad0f-45ec-8a20-85ed04c17e5f Marius Dumitru Florea created this issue on 11/Nov/26 19:31
 
Summary: Accept URLs without a scheme in the URL link target of the BlockNote link modal
Issue Type: cid:jira-generated-image-avatar-1b5cba7b-84bb-46f4-ae0b-c2a6f7ed0ba9 Improvement
Affects Versions: 18.9.0
Assignee: Unassigned
Components: BlockNote
Created: 11/Nov/26 19:31
Priority: cid:jira-generated-image-static-major-ee81284a-b236-479d-9c37-e36df0c6dd06 Major
Reporter: Marius Dumitru Florea
Description:

The URL link target of the BlockNote link modal only accepts full URLs: the browser rejects the URL field until the URL has a scheme (e.g. https://). So typing or pasting www.xwiki.org or xwiki.org/download doesn't work, and neither does a relative URL like /xwiki/bin/view/Main/.

Proposed behavior:

  • A URL that starts with a host name (e.g. www.xwiki.org, xwiki.org/download, localhost:8080/xwiki) is completed with the https:// scheme. The URL field shows the completed URL once you leave it, so you see what will be inserted.
  • A relative URL (starting with /, ./, ../, ? or #) is kept as typed.
  • A URL without a scheme is saved as a typed URL resource reference (e.g. url:/xwiki/bin/view/Main/), so it's still a URL link when you edit it again. Untyped, it would be parsed back as a page reference.
 
 

2 updates

 
cid:jira-generated-image-avatar-18ed623b-ad0f-45ec-8a20-85ed04c17e5f Changes by Marius Dumitru Florea on 11/Nov/26 19:31
 
Fix Version: 18.10.0-rc-1
Assignee: Marius Dumitru Florea