Hoe werken permalinks van vanilla naar discourse-omleiding?

how does permalinks work from vanilla to discourse redirection?