# Dynamically link to user account

**URL:** https://meta.discourse.org/t/dynamically-link-to-user-account/152955
**Category:** Support
**Created:** [27 במאי,‏ 2020,‏ 1:15pm UTC](https://meta.discourse.org/t/dynamically-link-to-user-account/152955 "2020-05-27T13:15:54Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jvio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jvio/32/180732_2.png) [@jvio](https://meta.discourse.org/u/jvio)
#### Post date: [27 במאי,‏ 2020,‏ 1:15pm UTC](https://meta.discourse.org/t/dynamically-link-to-user-account/152955/1 "2020-05-27T13:15:54Z")

</div>

I’ve been trying to create a dynamic link to the user’s profile in several formats, such as:

```plaintext
[profile picture](https://forum.domain.com/u/%{current_user})
[profile picture](https://forum.domain.com/u/%{profile})
[profile picture](https://forum.domain.com/u/%{data-user-card})

```

Unfortunately none of them were successful. Does anyone have an idea if this is possible?

**Use case:** I want people to upload a profile picture during onboarding and provide them with a link straight away to remove any friction.

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [27 במאי,‏ 2020,‏ 1:20pm UTC](https://meta.discourse.org/t/dynamically-link-to-user-account/152955/2 "2020-05-27T13:20:00Z")

</div>

You can use something like this

```plaintext
[profile picture](https://forum.domain.com/my/preferences/account)

```

`/my/` here will be handled by the app and will redirect the user to the respective page on their profile.

---

<div class="post-metadata">

### Author: ![jvio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jvio/32/180732_2.png) [@jvio](https://meta.discourse.org/u/jvio)
#### Post date: [27 במאי,‏ 2020,‏ 1:27pm UTC](https://meta.discourse.org/t/dynamically-link-to-user-account/152955/3 "2020-05-27T13:27:32Z")

</div>

Thanks @Johani for the quick reply!

Out of curiosity: could I’ve found this somewhere easily? (I’ve been digging quite some time via developer tools…)

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [27 במאי,‏ 2020,‏ 1:31pm UTC](https://meta.discourse.org/t/dynamically-link-to-user-account/152955/4 "2020-05-27T13:31:59Z")

</div>

Well, “easily” is a bit subjective, no?

You would’t really find this if you’re just looking at devTools, but I’m sure it’s documented here on Meta somewhere.

As a general rule, I would recommend using the search icon in the header and if you don’t get an answer in the results that come up, then feel free to ask about it. We’re OK with that 👍

---

<div class="post-metadata">

### Author: ![jvio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jvio/32/180732_2.png) [@jvio](https://meta.discourse.org/u/jvio)
#### Post date: [27 במאי,‏ 2020,‏ 1:33pm UTC](https://meta.discourse.org/t/dynamically-link-to-user-account/152955/5 "2020-05-27T13:33:19Z")

</div>

Haha, great, that’s exactly what I did!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [26 ביוני,‏ 2020,‏ 1:43pm UTC](https://meta.discourse.org/t/dynamically-link-to-user-account/152955/6 "2020-06-26T13:43:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
