Drupal 8 open link in a new tab

Dear all,

I’d like to know how is it possilble to open a link in a new window? It was very easy with version 7 but impossible to find this option now…
Thanks for your help.

Dear Yan,

I am not sure what type of links you refer to but I will reply for all cases I can think of.

Plain Links in a page

If inside the body of your page you want to have a link that opens in a new tab. This solution is not Drupal specific, it’s normal HTML and you do it by appending the target="_blank" attribute in your links in the following way:

<a href="https://www.google.com" target="_blank">My Link</a>

If you want to be able to add the option from the interface instead of having to append link in the HTML code, you can install the Editor Advanced Link module that provides this option.

Menu Links

If you refer to menu links you should install and enable the External Links module. The topic about External Links has already been discussed in this post.

Let me know if it works for you.

Konstantinos