Create a link that will bring a user to their own profile

(Steven Slade) #1

I would like to create a link that will tell members where to find their badges in their profile.

In this post I would like to direct members to their profile with a link.

For example: Discourse Meta

Is it possible to do this in a post using markdown? Or what needs to be done to accomplish this?

Supporting users with links to specific pages
(cpradio) #2

This exists

(Steven Slade) #3

Wowowow! Thank you. This is the greatest thing.

(Shannon Rogers) #4

Can this same solution be used to direct to a users post in a category. eg: I want to encourage my users to create a progress log. I have a Discourse category for these logs so I can link to the category, but I wonder if I could link to their log directly and if they don’t have one it would fall back to the category page. AKA: how else can the /my/ function be applied?

(Mittineague) #5

Like this ?
Presence features for forums

(Shannon Rogers) #6

Not sure what I’m seeing here. Mostly due to my unfamiliarity with the URL structure Discourse uses. I get the /t/ part and /my refers to the user but what does /11080/12 indicate?

(Mittineague) #7

Those are the topic_id and post_id

I guess I’m not understanding exactly what you’re asking?

(cpradio) #8

My is very restrictive and only applicable to certain pages, it can’t be used the way you are depicting. You’d have to write a plugin or something. It would be best to just send them to the category and they can find their existing log (if need be)

(Shannon Rogers) #9

OK thanks and agreed, just sending to the category will work, I was just trying to be fancy. Thanks as well to @Mittineague for explaining the url structure. That will be useful info for the future.

(Kane York) #10

The ‘my’ there could be replaced by anything, including a single dash - it’s taking the place of the topic slug, and the server will 302 you to the correct URL.

(cpradio) #11

And that is in reference to the one @mittineague created, not to be confused with the one that goes to their profile/preferences/bookmarks, etc.