Search code examples
htmlanchorrelative-pathabsolute-path

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


Solution

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

    <p><a href=“mailto:[email protected]”>[email protected]</a></p>
    <a href=“http://www.linkedin.com/pub/casey-hancock/51/98/880”>linkedin</a>
    

    should be:

    <p><a href="mailto:[email protected]">[email protected]</a></p>
    <a href="http://www.linkedin.com/pub/casey-hancock/51/98/880">linkedin</a>