Forum Moderators: open

Message Too Old, No Replies

Schema tool code different to site code

         

Arturo99

8:52 am on Jun 15, 2020 (gmt 0)

5+ Year Member Top Contributors Of The Month



I am getting error messages in search console with my "mailto" code in my site
My site has
<a href="mailto:info@example.com">info@example.com</a>


But schema checker tool sees this:
<a href=http://info@example.com</a>

and red highlights it.
It also adds in http which is not in the site code

what is the correct code?
Thanks, Art

not2easy

2:17 pm on Jun 15, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I'm confused - is the error seen in GSC or in the schema checker tool? Sorry, I can't tell which example is the code you are using. Are you using the <address> tag with this or is it in the page as
<a href="mailto:info@example.com">info@example.com</a>
or entered as schema meta?

This recent discussion might be helpful: [webmasterworld.com...]

Arturo99

3:53 pm on Jun 15, 2020 (gmt 0)

5+ Year Member Top Contributors Of The Month



Search console, Unparseable
Right hand column shows the actual code of the page Red hilighjted in Search console:
[a href="http://sales@example.com"><u>sales@example</u></a>]

In the html of the page (not schema) i have
[<a href="mailto:sales@example.com"><u>sales@example.com</u>]

Google does not like it.
Not sure why

not2easy

4:23 pm on Jun 15, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



It appears that the bot parses the "mailto:" part of your link and reads it as a link to your email address. Have you thought about using the <address> tag as mentioned in that discussion linked to above? Or using a form to receive messages?

Personally I quit using "mailto:" on a page when I first discovered spambots were a thing. You don't see an email link very often that isn't a link to a contact form.

If you want to find out why Google might not like the link, visit the HTML Validator [validator.w3.org] and see what they suggest. I'd trust the Validator over GSC these days. ;)