Requests for admins to be able to add links to the topnav come up reasonably often here on Meta.
There’s this one:
There’s also this one, with discussion spanning 3 years!
Back in 2015, Jeff said:
At the moment, the solution for this issue seems to be adding custom JS to the
</body>. While this works, it’s not exactly user friendly (you need a basic JS understanding to add or change links), and could break at any time with a code change to Discourse.
I’d like to suggest the following 3-stage rollout:
- Provide a site setting for admins to add external links to the topnav. The site setting will need 3 values, I propose a comma separated list.
- Provide a site setting for admins to add internal links to the topnav - without handling breadcrumbs.
- Improvinate #2 by handling certain cases where breadcrumbs make sense, like Tags, Users, Groups, Badges, etc.
The benefit to the 3-stage rollout is that external links require no routing by Discourse, nor breadcrumb support. They should simply be an
href. Keeping steps 2 & 3 separate will allow for complaint driven development. Roll-out internal link support, see if there are complaints about the lack of breadcrumbs. Meta already has 2 internal links without breadcrumb support, and I’ve never seen a complaint.