# Remove contact email hyperlink/url

**URL:** https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198
**Category:** Support
**Created:** [June 5, 2018, 6:54pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198 "2018-06-05T18:54:43Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)
#### Post date: [June 5, 2018, 6:54pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/1 "2018-06-05T18:54:43Z")

</div>

![Capture](https://global.discourse-cdn.com/meta/original/3X/a/c/ac1ca5513d0938a628c5223103e298523f4c3a63.PNG)  
on my forum, when people click the email they are redirected to the following link:  
https:// forum.theprojectvanlife .com/contact@theprojectvanlife.com

How do I prevent that from happening?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 5, 2018, 6:59pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/2 "2018-06-05T18:59:45Z")

</div>

Enter the correct value in site settings, you have something there that is invalid at the moment.

---

<div class="post-metadata">

### Author: ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)
#### Post date: [June 5, 2018, 7:09pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/3 "2018-06-05T19:09:56Z")

</div>

![Capture](https://global.discourse-cdn.com/meta/original/3X/a/d/ad64d7774e2defbff426199eb0d5f82f69b73fa0.PNG)  
How is that incorrect?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 5, 2018, 7:11pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/4 "2018-06-05T19:11:57Z")

</div>

Can you repro this @jomaxro?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [June 5, 2018, 7:36pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/6 "2018-06-05T19:36:09Z")

</div>

No, I cannot. @Sami_Syed, is it possible the text content was modified? What is the value in `/admin/customize/site_texts/js.about.contact_info`?

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [June 5, 2018, 8:07pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/7 "2018-06-05T20:07:40Z")

</div>

Check your `contact url` site setting as well.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 5, 2018, 8:12pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/8 "2018-06-05T20:12:06Z")

</div>

In order for this to become a hyperlink that launches an email client you need to set `contact url` to `mailto:myname@example.com`

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [June 5, 2018, 8:12pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/9 "2018-06-05T20:12:44Z")

</div>

In my test on try `contact url` has higher priority. If both are set the URL appears as expected. If only URL is set, a hyperlink appears. If only email is set the email appears as plain text. @merefield is correct about how to make email a link.

---

<div class="post-metadata">

### Author: ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)
#### Post date: [June 5, 2018, 8:56pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/10 "2018-06-05T20:56:24Z")

</div>

This is what it looks like

> In the event of a critical issue or urgent matter affecting this site, please contact us at %{contact\_info}.

> [@supermathie](#):
>
> Check your `contact url` site setting as well.

I already did that and posted a pic of it up top ^

> [@merefield](#):
>
> In order for this to become a hyperlink that launches an email client you need to set _contact url_ to ‘[mailto:myname@example.com](mailto:myname@example.com)’

This worked but now I have ‘mailto’ right before the email. Is it possible to remove that.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 5, 2018, 9:14pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/11 "2018-06-05T21:14:14Z")

</div>

Actually turns out you can do this in `contact url:`

```html
<a href="mailto:myname@example.com">myname@example.com</a>

```

This hides the ugly _mailto_ 🙂

That last rolo is mine, now, right? 😉

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [June 5, 2018, 9:49pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/12 "2018-06-05T21:49:19Z")

</div>

> [@Sami\_Syed](#):
>
> I already did that and posted a pic of it up top

Note that’s `contact email`, not `contact url`.

> [@merefield](#):
>
> Actually turns out you can do this in `contact url`

❤!

---

<div class="post-metadata">

### Author: ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)
#### Post date: [June 6, 2018, 8:10pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/13 "2018-06-06T20:10:05Z")

</div>

> [@merefield](#):
>
> mailto:

like there is a ‘mailto:’ tag is there something like a ‘redirect’ tag? So that I can send users to my contact page when they click the email

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 6, 2018, 8:26pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/14 "2018-06-06T20:26:40Z")

</div>

In that case just use the full URL of the page you want to go to, including the `http://`

(if you don’t it will try to append the link you give to the end of the current domain).

You don’t need the rest of the html in the case of `mailto:`, so just:

`http://myotherwebsite.com` should work in `contact url`

---

<div class="post-metadata">

### Author: ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)
#### Post date: [June 6, 2018, 8:29pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/15 "2018-06-06T20:29:29Z")

</div>

It worked perfectly

> [@merefield](#):
>
> (if you don’t it will try to append the link you give to the end of the current domain)

This is the problem I was having. Thank you!

---

<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: [June 8, 2024, 12:37pm UTC](https://meta.discourse.org/t/remove-contact-email-hyperlink-url/89198/16 "2024-06-08T12:37:24Z")

</div>

This topic was automatically closed after 2194 days. New replies are no longer allowed.
