Currently this doesn’t work for domains different to the Discourse install.
So for a setup where:
- Discourse is installed at:
http://discourse.example.com/ - And the blog / homepage is at:
http://www.example.com/
Using this code to add a non-Discourse instance domain link:
<script type="text/discourse-plugin" version="0.4">
api.decorateWidget('hamburger-menu:generalLinks', () => {
return { href: 'http://www.example.com/sample-page/', rawLabel: 'Example' };
});
</script>
Links to (when clicked): http://discourse.example.com/sample-page/
instead of: http://www.example.com/sample-page/
The HTML is correct, so I’m guessing the click handler does something funky.

EDIT: Thank you so much for adding this! ![]()
EDIT #2: I attempted to add permalinks to the Discourse instance to work around this and redirect to the correct external link. This however didn’t work it appears permalinks are not followed by the menu links, however permalinks are followed when the link appears in post content.