how to make a URL link to open in new tab
Asked by venkat:

Hi All,

I am new to Confluence and i am creating a new SPACE for my team.

I have a soft link "URL" and i am looking to open in new tab if any one click on it.

Please suggest.

Thank you in Advance.


Answers:
author: Paul Elia
body: This is such a simple request but you are choosing to be stubborn, Atlassian. Confluence is such an outdated tool. You are lucky to have such market share, but it won't always remain this way. Multiuser simultaneous edit is not even possible, which really makes this a legacy too that I run into every now and then as a consultant, but never a tool I would champion. Best of luck in the 2020s.

comments: author: Derek Price
body: Actually, simultaneous edit has been working for awhile. At least a year or so?


author: O O
body: still not working.. yeah its because of my company otherwise I would use larksuite


author: Mark Burgess
body: Agreed! Well put Paul.


author: Mark Burgess
body: Agreed. It's something that is available in most contemporary cloud applications as a simple option for new tab, new window, same context).


author: elias_fm
body: Still not working in 2024...please help us out Confluence


author: Matt Foreman
body: Heyo, was searching for a way to a link in a new tab the hyperlink taking the user away from the Confluence site completely. Seems like something something very simple that should be included in the link settings UI.  

I see this question was created in 2020. As I'm writing this, it is almost 2023. Is it now possible to do this?

comments: author: Maryam Rasti
body: I have the Same problem , it is Christmas and still not solved.


author: Matt Foreman
body: Really wish Atlassian would do something about it. A lot of people are asking for this, it's clearly helpful and would add value for their users, and it's something that should be *very*easy for them to implement. Yet this thread was opened in 2020, so they seem to be ignoring it. :(


author: Annelotte
body: I've created this <https://jira.atlassian.com/browse/CONFCLOUD-75466> please vote for it if you also want to be able to set up links to open in a new tab (ticket for confluence cloud).


author: Chris Kritzer
body: As a workaround in CONFLUENCE, you can use the **HTML macro** ![html_macro.png](https://community.atlassian.com/t5/image/serverpage/image-id/162067i366A23AEB18AC8C8/image-size/large?v=v2&px=999 "html_macro.png")

to embed an anchor tag with a **target** attribute in the following fashion:  

```
<a href="https://www.google.com/" target="_blank">The Google</a>
```

I have verified this technique works, as I have a deep need for opening pages in a new tab.

comments: author: Derek Price
body: For some reason, the HTML macro is missing from my Confluence Cloud installation. I only see an HTML Comment macro when I search for "HTML".


author: Monica
body: There is a security vulnerability with simply tartget="_blank".

The fix is to add:

    rel="noopener noreferrer"

For further explanation read this page: [How to Fix _blank Target Vulnerability \| Perishable Press](https://perishablepress.com/fix-blank-target-vulnerability/)


author: Chris Kritzer
body: Ooooo nice tip, Monica - thank you!


author: Mark Capistrant
body: Adding the HTML macro is a Confluence Admin capability. It's off by default because of potential XSS vulnerabilities.   
<https://confluence.atlassian.com/doc/html-macro-38273085.html>


author: Jim
body: This is still a thing? Please fix this Atlassian. This is basic UX for a linked doc. Every person on my team makes the mistake of clicking the link expecting it to open in a new tab. This is default behavior for document services like Google Drive, so it's an expected outcome.

Please fix this.

comments: author: Bronwyn Gagne
body: I find it ridiculous that there isn't an editable option for links for "target="

I find it MORE ridiculous that Atlassian products (all of them - Jira included) seem to think that I want to open all links in the same window. WHY would I want to replace my JIRA ticket window with something associated with the ticket? JUST to have to return? WHY would I want to click into an external site from my Confluence documentation and LOSE my help page?

ATLASSIAN - make it make sense. Because it doesn't. Minimally let Confluence users decide which way they want a link to behave. It can't possibly be that difficult to code in.


author: fanky10
body: I cannot agree more on this \^


author: Lars Fessler
body: I am with Jim and many others on this topic. It is basic web experience. Authors should be able to click a checkbox within the Insert Link and Edit Link dialogs to tell Confluence that this link should be opened in a new tab/window. Wether it is new tab or window should depend on browser settings.

**Every** other CMS I know has this feature.


author: Kevin Dekan
body: Depending on the scenario, you can also use the macro "UI Button", which lets you decide whether to open a link in a new window.

comments: author: Mark Sharaabi
body: Nice!


author: Victoria
body: Hi [@venkat](/t5/user/viewprofilepage/user-id/3849391),

As per our documentation [Links](https://confluence.atlassian.com/doc/links-776656293.html), Confluence doesn't provide an option to configure a link to open in a new window or tab. Users can choose to right click / CTRL+click the link if they want to open it in a particular way.

A free option is to get [Link Opener for Confluence](https://marketplace.atlassian.com/apps/1217707/link-opener-for-confluence?hosting=server&tab=overview) plugin in Atlassian Marketplace.

Hope this answer can help you!

Kind Regards,  
Victoria S. \| Atlassian Support

comments: author: Frankie Valleras
body: Hopefully Atlassian can do something about this as this is really very helpful to direct users from one page to another. It will really help us a lot.


author: Gunnar Brinkmann
body: I just proposed the plugin to our Confluence staff, I think it's ok to let a user decide wether or not he or she wants to open internal and/or external links in a new window.


author: Juan Jose Vercellone
body: Ctrl+Click does not work for this (at least in Confluence and JIRA), it seems like the shortcut was intentionally disabled because it should work by default but it doesn't.


author: alexey_varavin
body: I wonder why such a basic and simple functionality cannot be implemented for such a long time? Is there any particular reason for that?

Any accidental click and you are forced to reload Jira page again, which is slow because Jira app takes a lot of time to load. That's insane.


author: Paula Hanna
body: This seems like basic functionality especially from a documentation perspective. Is there any backlog item for this at Atlassian?


author: Derek Price
body: I like to make external links open in a new tab. Letting the user decide would be great, if there was some contextual hint that a link was for an external site.


author: Nick Brown
body: This would be useful user-based setting, let users choose link behavior.


author: Rachel Richardson
body: Interestingly enough, I believe Jira has this feature for external links (in the user profile settings) so I'm curious why Confluence doesn't.

We were able to create a custom user macro using the script that Atlassian provides here (<https://confluence.atlassian.com/confkb/how-to-force-links-to-open-in-a-new-window-213518072.html>) that works on a page-by-page basis, which is helpful for space admins to control within the context of their spaces (instead of across all of Confluence)

While it helps, it doesn't solve the per-user use case entirely.

There's also some additional links to marketplace apps on the feature request here - <https://jira.atlassian.com/browse/CONFSERVER-11194>


author: Shane Hadden
body: Hey Atlassian, We need an option to set individual links to open in a new tab/window in Confluence Cloud please!


author: Derek Price
body: Again, just give us a context hint so that I know that I should right-click and select "Open in New Tab", like you see nearly everywhere else, a subtle:![512px-External_link_font_awesome.svg.png](https://community.atlassian.com/t5/image/serverpage/image-id/189128iDAAC157B80BF3649/image-size/large?v=v2&px=999 "512px-External_link_font_awesome.svg.png")


author: Matt Foreman
body: Heyo, was searching for a way to a link in a new tab vs it taking the user away from the Confluence site completely. Seems like something something very simple that should be included in the link settings UI. Is it possible to do this?


author: Mark B Wager
body: I wish Atlassian used it's own tools. I think if they did, they'd fix all these problems.

Case in point, if I click Derek's image (above) it nicely opens in a popup window. Nice! I wish MY Confluence would allow this without having to pay $$$$ for ANOTHER marketplace app. I'm just getting so tired of telling my users "No, sorry, Confluence can't do that anymore. I know... I know... I'm so sorry."

Maybe I'm missing the HOW. Atlassian, HOW do we do this?

Thanks,

Mark


Tags: atl-gruland

confluence-server

server