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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

685 views 21 12
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