Ok I just added support for links which uses the category ID instead but at the same time still keeping the slug in the link.
https://github.com/discourse/discourse/commit/d523dd320809d93f01705de9ea72a5852ddc42f2
#howto —> meta.discourse.org/c/4-howto
#tips-and-tricks —> meta.discourse.org/c/how-to/tips-and-tricks/5