Changes by Marius Dumitru Florea on 12/Nov/26 08:18
Resolution:
Fixed
Status:
OpenClosed
1 comment
Marius Dumitru Florea on 12/Nov/26 08:18
Implemented in 6532efe0304 (not pushed yet). The URL link target of the BlockNote link modal now accepts:
a URL starting with a host name, e.g. www.xwiki.org, example.org/docs, localhost:8080/xwiki or 192.168.0.1: it's completed with the https:// scheme, as the address bar of a browser does, as soon as the user leaves the URL field (so the user sees the URL that is saved) and when the link is saved.
a relative URL, e.g. /xwiki/bin/view/Main/: it's kept as typed and saved as a typed path reference (path:/xwiki/bin/view/Main/). It can't be saved as a URL reference because XWiki Rendering accepts a URL reference only with a scheme (scheme://) and parses anything else back as a document reference, even when typed (url:/xwiki/bin/view/Main/ is a link to a page with that name). Editing such a link shows it as a Path link.
The URLs with a scheme (https://..., ..., tel:...) are left untouched. The URL field no longer uses the url input type, whose browser validation rejected the URLs without a scheme, but it keeps the URL virtual keyboard on mobile devices.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.