简体   繁体   中英

HTML anchor treating all paths as Relative

I cannot get my website to treat links as absolute paths.
here is my website:

caseyshancock.com

Look under the contact me and note how the two links are being treated as relative addresses. Instead of

http://www.linkedin.com/pub/casey-hancock/51/98/880

it tries to make it add my domain name before the link

You're using smart quotes in your HTML. Use regular ' or "" .

<p><a href=“mailto:casey.s.hancock@gmail.com”>casey.s.hancock@gmail.com</a></p>
<a href=“http://www.linkedin.com/pub/casey-hancock/51/98/880”>linkedin</a>

should be:

<p><a href="mailto:casey.s.hancock@gmail.com">casey.s.hancock@gmail.com</a></p>
<a href="http://www.linkedin.com/pub/casey-hancock/51/98/880">linkedin</a>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM