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

**URL:** https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614
**Category:** Support
**Created:** [1월 7, 2016, 10:07오후 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614 "2016-01-07T22:07:57Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![stevenpslade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevenpslade/32/53550_2.png) [@stevenpslade](https://meta.discourse.org/u/stevenpslade)
#### Post date: [1월 7, 2016, 10:07오후 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/1 "2016-01-07T22:07:57Z")

</div>

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: [https://meta.discourse.org/users/YOUR-USERNAME-HERE/activity](https://meta.discourse.org/users/YOUR-USERNAME-HERE/activity)

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

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [1월 7, 2016, 10:13오후 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/2 "2016-01-07T22:13:33Z")

</div>

This exists [Discourse Meta - The Official Support Forum for Discourse](https://meta.discourse.org/my/activity)

---

<div class="post-metadata">

### Author: ![stevenpslade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevenpslade/32/53550_2.png) [@stevenpslade](https://meta.discourse.org/u/stevenpslade)
#### Post date: [1월 7, 2016, 10:36오후 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/3 "2016-01-07T22:36:52Z")

</div>

Wowowow! Thank you. This is the greatest thing.

---

<div class="post-metadata">

### Author: ![Shannon\_Rogers](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shannon_rogers/32/121776_2.png) [@Shannon\_Rogers](https://meta.discourse.org/u/Shannon_Rogers)
#### Post date: [5월 19, 2016, 4:02오후 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/4 "2016-05-19T16:02:51Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [5월 19, 2016, 6:53오후 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/5 "2016-05-19T18:53:25Z")

</div>

> [@Shannon\_Rogers](#):
>
> Can this same solution be used to direct to a users post in a category

Like this ?  
`https://meta.discourse.org/t/my/11080/12`  
[https://meta.discourse.org/t/my11080/12](https://meta.discourse.org/t/my11080/12)

---

<div class="post-metadata">

### Author: ![Shannon\_Rogers](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shannon_rogers/32/121776_2.png) [@Shannon\_Rogers](https://meta.discourse.org/u/Shannon_Rogers)
#### Post date: [5월 19, 2016, 7:03오후 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/6 "2016-05-19T19:03:17Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [5월 19, 2016, 7:05오후 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/7 "2016-05-19T19:05:57Z")

</div>

> [@Shannon\_Rogers](#):
>
> what does /11080/12 indicate?

Those are the topic\_id and post\_id

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

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [5월 19, 2016, 7:07오후 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/8 "2016-05-19T19:07:40Z")

</div>

> [@Shannon\_Rogers](#):
>
> how else can the /my/ function be applied?

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)

---

<div class="post-metadata">

### Author: ![Shannon\_Rogers](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shannon_rogers/32/121776_2.png) [@Shannon\_Rogers](https://meta.discourse.org/u/Shannon_Rogers)
#### Post date: [5월 19, 2016, 7:14오후 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/9 "2016-05-19T19:14:47Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [5월 20, 2016, 4:20오전 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/10 "2016-05-20T04:20:32Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [5월 20, 2016, 10:11오전 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/11 "2016-05-20T10:11:20Z")

</div>

> [@riking](#):
>
> 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.

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.

---

<div class="post-metadata">

### Author: ![mforbes](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@mforbes](https://meta.discourse.org/u/mforbes)
#### Post date: [2월 19, 2022, 7:51오후 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/12 "2022-02-19T19:51:43Z")

</div>

정확히 말하자면, 이 작업이 제대로 수행되려면 `u/username` (그리고 `u/` 포함)을 `my`로 대체하세요.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [6월 8, 2024, 12:36오후 UTC](https://meta.discourse.org/t/create-a-link-that-will-bring-a-user-to-their-own-profile/37614/13 "2024-06-08T12:36:46Z")

</div>

이 주제는 3074일 후 자동으로 닫혔습니다. 더 이상 새로운 답글을 작성할 수 없습니다.
