Skip to content

Open external URLs in a new tab #856

@marjuscako

Description

@marjuscako

Describe the feature you'd like to request

Currently there is no way by using the Markdown to set a link to open on a new tab, as it is also described in #820. I would like to add to that, so that we create a new configuration option to add to all external URLs the setting to open to a new tab.

Describe the solution you'd like

I propose that we add a configuration option, e.g., external_links_new_tab, which if set to true, all the rendered link_url will contain the attributes target=_blank and rel="noreferer noopener".

As a bonus to the above, we will enable the target and rel keys to be configurable from the user, so that if they want to add only some of the URLs to be opened in a new tab, to be able to do so.

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions