xebiyen
(xebiyen521)
January 20, 2023, 11:15pm
1
xebiyen521
Joined 7 December 2022
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
Southpaw
(Southpaw)
January 21, 2023, 1:02am
2
Hi @xebiyen ,
Please try this:
https://meta.discourse.org/my/activity
It will redirect to the user’s own activity page.
3 Likes
Heliosurge
(Dan DeMontmorency)
January 22, 2023, 11:01am
3
If not mistaken you can also shorten from
https://meta.discourse.org/my/activity
to
/my/activity
My Activity
2 Likes
Canapin
(Coin-coin le Canapin)
January 22, 2023, 3:47pm
4
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?
1 Like
Heliosurge
(Dan DeMontmorency)
January 22, 2023, 4:46pm
5
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.
https://meta.discourse.org/
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!
3 Likes
system
(system)
Closed
February 21, 2023, 4:46pm
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.