Here is the code used above
[My Activity](/my/activity)
I have used the
/my/activity
in Theme-components like drop down menu links.
Using the short link is also quite useful when setting up your layout.
ie help topics with links to sources on your forum. My client has changed his domain name a couple of times. With shortening the link to not have the have the website link prevents breakage of internal links. So in theme-components that add links to menus or new menu bars do not need to be fixed with a domain change. And posts created by staff or users whom are aware of this technique will not have to have posts rebake or manually repaired.
iirc found this technique out in one of the components maybe @Johani dropdown?
Now combine this with the newer Shorten Share link and will really allow savings on your discourse forum!