# Link custom user field to external website

**URL:** https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894
**Category:** Development
**Created:** [February 9, 2024, 8:41pm UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894 "2024-02-09T20:41:16Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [February 9, 2024, 8:41pm UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894/1 "2024-02-09T20:41:16Z")

</div>

I currently have a theme component that displays a custom user profile field as a link on the user profile, card, etc.

I did something like [this](https://meta.discourse.org/t/retired-use-an-id-in-a-custom-user-field-to-link-to-a-users-external-profile/41218/1).

That guide is now outdated because of Ember 5.

Does anybody have any guidance on how to update this so it will continue working?

---

<div class="post-metadata">

### Author: ![frictionel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frictionel/32/299701_2.png) [@frictionel](https://meta.discourse.org/u/frictionel)
#### Post date: [February 9, 2024, 8:52pm UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894/2 "2024-02-09T20:52:42Z")

</div>

Look at the last post. I installed that and it works like a charm.

> [@(Retired) Use an ID in a custom user field to link to a user's external profile](https://meta.discourse.org/t/retired-use-an-id-in-a-custom-user-field-to-link-to-a-users-external-profile/41218/63):
>
> I did end up re-working @wilson29thid’ TC [here](https://github.com/Firepup6500/discourse-custom-profile-link) though it does still have a deprecation warning that I need to fix at some point.

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [February 9, 2024, 8:56pm UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894/3 "2024-02-09T20:56:21Z")

</div>

Thanks, but he said it still had deprecation warning. I assumed that was related to Ember 5… Is it not?

---

<div class="post-metadata">

### Author: ![frictionel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frictionel/32/299701_2.png) [@frictionel](https://meta.discourse.org/u/frictionel)
#### Post date: [February 9, 2024, 8:57pm UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894/4 "2024-02-09T20:57:30Z")

</div>

I don’t see any errors from it in my logs.

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [February 9, 2024, 9:44pm UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894/5 "2024-02-09T21:44:17Z")

</div>

It’s not an ember 5 depreciation, but it is still a deprecation that I need to fix at some point in time. It’s not a deprecation that breaks the theme component or your site at this time.

I’ll try to remember to get a topic up about it at some point. (The TC, not the deprecation)

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [February 10, 2024, 4:29pm UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894/6 "2024-02-10T16:29:24Z")

</div>

Thanks. I tested it, forked it, and made some modifications for my use-case. Very helpful!

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [February 10, 2024, 4:44pm UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894/7 "2024-02-10T16:44:52Z")

</div>

Out of curiosity, what did you change about it?

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [February 10, 2024, 5:04pm UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894/8 "2024-02-10T17:04:57Z")

</div>

Well, we have two profile fields. One is an organization name and the other is a URL to that org’s website. We display the org name on the profile and link it to the org website.

I also hide the normal unlinked display of both of those fields using CSS so the data isn’t showing up twice.

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [February 10, 2024, 5:08pm UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894/9 "2024-02-10T17:08:19Z")

</div>

So your fields are like this?

| Field Name | Value |
| --- | --- |
| Organization name | Example |
| Organization URL | [example.com](http://example.com) |

I could probably build that in as it’s own setting at some point.

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [February 10, 2024, 5:13pm UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894/10 "2024-02-10T17:13:11Z")

</div>

Yes. So after my modification, I just put “2” in the first setting of your component and “1” in the second one.

That tells you the modification I had to make. Now that I think of it, here’s a [link to the repo](https://github.com/warhornmedia/discourse-church-profile-link). Very quick and dirty.

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [February 13, 2024, 2:44am UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894/11 "2024-02-13T02:44:29Z")

</div>

Just finished up an “organization” style link setup, could you see how that works for you?

---

<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: [March 14, 2024, 2:45am UTC](https://meta.discourse.org/t/link-custom-user-field-to-external-website/294894/12 "2024-03-14T02:45:27Z")

</div>

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