A follow-up commit improves the link modal further:
The "Open in a new tab" option is dropped.
The display text is optional and moved under "Options". When it's left empty, the link label is generated from the link target: the title of the selected page suggestion, or else the page name (the parent space name for a nested page, not "WebHome"), the attachment file name, the e-mail address, or the URL / path as is.
The link target field is focused when the link modal opens, including the first time.
The link type is no longer marked as required (a value is always selected), while the attachment reference now is.
The text typed in the page / attachment search box is selected when the field loses the focus, and Escape closes the suggestions without closing the modal.
The query string and the anchor of page and attachment links are saved. Links inserted from the slash menu were saved as URLs, because the slash menu skipped the hooks storing the link reference.
The link target and option fields have placeholders.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.