Remove contact email hyperlink/url


(Sami Syed) #1

Capture
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?


(Jeff Atwood) #2

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


(Sami Syed) #3


How is that incorrect?


(Jeff Atwood) #4

Can you repro this @jomaxro?


(Joshua Rosenfeld) #6

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?


(Michael Brown) #7

Check your contact url site setting as well.


#8

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


(Joshua Rosenfeld) #9

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.


(Sami Syed) #10

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}.

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

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


#11

Actually turns out you can do this in contact url:

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

This hides the ugly mailto :slight_smile:

That last rolo is mine, now, right? :wink:


(Michael Brown) #12

Note that’s contact email, not contact url.

:heart:!


(Sami Syed) #13

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


#14

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


(Sami Syed) #15

It worked perfectly

This is the problem I was having. Thank you!