router.transitionTo wordt alleen afgebroken voor de chatpagina, maar werkt voor de rest van de links zoals de gebruikerspagina

The idea looks reasonable to me. I just tried this on the developer console here on meta:

Discourse.lookup("service:router").transitionTo("chat.index")

and it seems to work ok.

Is chat definitely available to the user you’re testing with?