Where can one write code to control Application Navigator links? (target=_blank)

Hi folks, does anyone know where to add code (Javascript or otherwise) to control the Application Navigator? We have a few links that we'd like to force to open in a new tab if possible.

It seems that the "Custom HTML" option in the admin console affects pages and blogs, but not the Application Navigator.

Thanks for any advice,

Joe

1 answer

Joe,

If you inspect element on any of these links do they have a common css class?

You may be able to use the jQuery in to following KB to filter for those classes instead of ".external-link"

https://confluence.atlassian.com/display/CONFKB/How+to+Force+Links+to+Open+in+a+New+Window

Daniel, thanks for the suggested KB article.

Strange that it's not working, right? I deleted my javascript, then copied and pasted from the KB article. After I saved and refreshed the page, the Application Navigator links worked the same as before (not openining in a new tab).

I then inspected the elements and saw that the a href class for all of the Application Navigator links is .aui-dropdown2-radio so I tried this as well, but no luck.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,133 views 61 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you