Why does not the AUI Button Hyperlink macro work?

I've added several buttons using the AUI Button Hyperlink, but currently, nothing happens when I select the button, so I'm obviously doing something wrong. However, as there are only a limited number of parameters to set, I need some help in investigating this.


I fill in the title, URL and button type=standard and icon=none. I leave ID and class empty.

The button appears nicely when I save, but nothing happens when I select.

Adding a regular hyperlink works fine.


Any hits as to what I'm doing wrong?


John Erik Setsaas



2 answers

I do not think that AUI button has url param. You need to define onclick handler:

AJS.$("#YOUR-BUTTON-ID").click(function() {
Steven Behnke Community Champion Feb 09, 2015

Aha! They must have changed something at some point, because I'd been using that set up as a URL param and then at some point it stopped working. I wasn't sure when.

Not sure what you are talking about, Volodymyr. I get the following dialog when editing the macro, and no place to edit the code of the macro.



However, the sysadm found that there was an upgrade available. When this was installed, the buttons worked.


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 Tuesday 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 ...

395 views 17 9
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