How to make a redirect URL in a Discourse install?

AI-generated summary

The discussion addresses how to create a redirect URL in a Discourse installation. jmccord asks how to set up redirects for external links like Facebook or Twitter, given that Discourse is installed at the root of their domain and YouTube annotations are restricted to the root domain. codinghorror seeks clarification on the setup. fefrei and cpradio explain that redirects can be configured using the Permalink feature in the admin settings, where users can specify an external URL. jmccord confirms this solution works and thanks the contributors.

This is my first install of a non-PHP based application. I am completely unfamiliar with RoR. I’m having a little bit of trouble figuring out how to do this on my server, or even if it’s possible.

Background: I have a YouTube channel. Discourse is at the root of our domain. To link to our Facebook, Twitter, or anything else from an annotation in our YouTube channel, we can only link to our actual domain per YouTube’s restrictions.

On a PHP server, I would just drop facebook.php in the root of the server, link to it from the annotation (domain.com/facebook.php), fill it with a 1 line redirect to our FaceBook page. How would I achieve this on a server where it is installed at the root level like that?

Wait what? If Discourse is at the root and you can only link to the root from YouTube you should be fine. I am not following this at all. Can you provide URL examples?

You can set up redirects in /admin/customize/permalinks, simply use the external URL mode and enter the URL you want to link to.

You could use the Permalink feature.

Using facebook in the first textbox, external URL in the second, and https://www.facebook.com in the final textbox.

Ninja’d by @fefrei

Excellent! Permalink feature is exactly what I was looking for. Thanks!