Example, this link below, the person who uses it, will have to change my use of the link to put hers to work!
But how do you get that same link for everyone to click on without having to change the user?
I want to have links like this to make a menu
The discussion revolves around creating menu links that everyone can access. xebiyen wants to share a link that, when clicked, will redirect to the user’s own activity page without requiring them to modify the link. Southpaw suggests using https://meta.discourse.org/my/activity, which will redirect to the user’s own activity page.
Heliosurge points out that the link can be shortened to /my/activity and provides an example of how to create a working link using Markdown formatting: [My Activity](/my/activity). This technique is useful for creating internal links that won’t break if the domain name changes.
Heliosurge further explains the benefits of using shortened links, especially when setting up layout and theme components, and mentions that combining this technique with the Shorten Share link feature can be beneficial for discourse forums.
Example, this link below, the person who uses it, will have to change my use of the link to put hers to work!
But how do you get that same link for everyone to click on without having to change the user?
I want to have links like this to make a menu
Hi @xebiyen,
Please try this:
https://meta.discourse.org/my/activity
It will redirect to the user’s own activity page. ![]()
I didn’t know that @Heliosurge…!
What would be the fastest way to actually write a working /my/activity link?
If you simply write:
/my/activity
It won’t transform it into a link.
If you use the link icon or Ctrl+k and enter /my/activity in the URL input, it will transform it into https:///my/activity
So, you actually have to create a link using markdown formatting, and then remove the https:// part? Or is there a more straightforward way?
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!