Unable to get a Discourse User Name for a dynamic path

If all you want to do is link to the current user’s preferences, you could simply use a link like

https://meta.discourse.org/my/preferences

That would avoid JavaScript altogether :slight_smile: