BlockNote Link Options
Reference
The link modal of the BlockNote editor opens when you insert or edit a link, under the title "Insert link" or "Edit link". Which of its fields are shown depends on the selected link type. Click "Insert" (or "Update") to apply the link, or "Cancel" to leave the content as it was.

The link modal, with the Page link type selected and the Options group expanded
| Field | Link type | Description |
|---|---|---|
| Link type | All | The kind of target: "Page", "Attachment", "E-mail" or "URL". When you edit a link to a path, to a UNC path, or to a kind of target the modal doesn't support (such as an interwiki link), the list also offers that kind, and a single field holds its address, so that the link keeps its kind. |
| Page reference | Page | The reference of the target Page, picked from the suggestions. Leave it empty to link to the current Page, or, with an "Anchor", to one of its sections. |
| Attachment reference | Attachment | The reference of the target Attachment, picked from the suggestions. |
| E-mail address | The address to send the message to. | |
| URL | URL | The address to link to. An address that starts with a host name, such as www.xwiki.org or localhost:8080/xwiki, is completed with https:// when you leave the field. Any other address without a scheme, such as /xwiki/bin/view/Main/, ../docs, ?key=value or #anchor, is kept as typed, and the link is then edited as a path link. |
XWiki 18.10.0+ The reference of a Page or an Attachment is saved relative to the edited Page: the parts they have in common, such as the wiki, are left out.
The "Options" group is collapsed by default. It always offers the "Display text", the text shown in place of the link. XWiki 18.10.0+ Leave it empty to have the text generated from the target, for example the name of the target Page: the link is then saved without a text of its own, and its text follows the target when you change it. When you edit such a link, the field is empty and shows the generated text as its placeholder. A text you type is always kept, even when it is the same as the generated one.
The other options depend on the link type:
| Option | Link type | Description |
|---|---|---|
| Query string | Page, Attachment | The parameters appended to the target address, such as key1=value1&key2=value2. |
| Anchor | Page | The identifier of a section of the target Page, such as HSectionTitle. |
| Message subject | The subject line of the message. | |
| Message body | The text the message opens with. |
FAQ
What happens if I change the link type of an existing link?
The fields of the previous type are replaced by those of the new type, and the link points at the new target once you submit the modal.