The discussion revolves around redirecting a specific topic to a category route in Discourse. bartv initially asked for help with this issue, providing an example of the desired redirect (/t/slug/123 => /c/slug/456).
bartv then shared a custom JavaScript solution using a Discourse plugin, which appears to work for their use case. However, JammyDodger suggested using the “external or relative url” option in Permalinks as an alternative solution.
bartv clarified that the topics are not deleted, but rather need to be pinned as a navigation tool, and tested that Permalinks do not work for existing URLs. JammyDodger confirmed that Permalinks only work for deleted topics, and not for existing URLs.
I’m a bit stuck on this one: I’d like to redirect from a specific topic to a category route, something like this:
/t/slug/123 => /c/slug/456
I realise the permalinks in the admin aren’t meant for existing Discourse URLs, and that this could be done with some custom code. Does anyone have an example to point me in the right direction?