This seems like it could be a subdirectory bug. With the code below, a button is generated in the header to the specifications, including in the HTML, but rather than being taken to /donate
when clicked, users are instead taken to /community/donate
.
api.decorateWidget('header-buttons:after', helper => {
return helper.attach('link', {
className: 'btn-primary btn-small login-button donate-button',
icon: 'paypal',
rawLabel: "Donate",
href: "https://critcola.com/donate"
});
});