As an admin we often want to give a link to a user to their settings page.
Instead of giving them an example with a hard coded user in the URL like
https://swi-prolog.discourse.group/u/ericgt/preferences/account
we change out u/ericgt
with my
https://swi-prolog.discourse.group/my/preferences/account
and give that to our users and they are non the wiser.
Now some of us as admins visit other sites and help other admins and would like the same magic to happen but for the hostname, e.g. swi-prolog.discourse.group
Is there a generic replacement for the hostname that works on Discourse sites?