How do root level links work?

Out of the box, Discourse comes with a few convenience links: /faq and /privacy and /about.

It isn’t obvious how they work. They seem to be topics in the staff channel, which is normally not visible to non-logged-in users. But /privacy and /tos work for non-logged-in users, even when I have must-be-logged-in turned on. (That’s fine, I don’t mind that, just observing).

Are these specially coded in Discourse? Or are they under my control? Are they just permalinks? I want to make one like /acceptable-useand have it behave the same way.

Those pages also have this nice feature of having links at the top of the page labeled “Privacy” and “Terms of Service” that let you navigate. And if you’re logged in you also see the “FAQ” link, but if you’re not logged in you don’t. I can’t figure out how those things are done, because they’re not visible in the body of the topics that contain the terms or the privacy policy.

How do I add one more top-level page that behaves the same way? I want it to act like the FAQ and be visible only to logged-in users, but I’d accept it being public. It’s not a big deal.

And lastly, any hints on how to find the answer to this myself? I did search the meta discourse here a fair bit and couldn’t come up with anything relevant. There must be some documentation or something that I haven’t read carefully enough.

1 Like

iirc those are hardcoded and there is no interface in discourse to edit those routes or create new such routes.

If your goal is just to have a few additional static pages and don’t care much about the url, You can use Page Publishing which lets you set topics as static pages which you can also make visible to anonymous users.