• Resolved alexissdawn

    (@alexissdawn)


    I’ve been working on getting my site up and everything has worked so far up until I tried putting a few links into my header.php to make a navigation bar.

    My site is www. alexissdawn . com/blog. If you look under my header image there are random links – but when you click on them the page is not found. I noticed though that the url it’s set to is double. For example, the “Home” link address is set to: https://www.alexissdawn.com/blog/contact-me/%E2%80%9Dhttps://www.alexissdawn.com/blog%E2%80%9D

    So it’s doubling up for some reason – but my code is:
    Home

    It’s the most basic html code but it’s not working. I’ve spent hours searching forums but still can’t figure it out. It’s a brand new site so I haven’t moved anything over and I’ve only messed a bit with the header.php and stylesheet. Any ideas??

    UPDATE: After I posted I looked at it and it screwed up again. Above where I put in my code, I didn’t space it out so you could see it:

    a href=””https://www.alexissdawn.com/blog”” Home /a

    (Obviously I don’t have all of those spaces and I have the brackets in my code – just wanted you to be able to see it.)

    But look above how the link is set to:
    https://www.ads-software.com/support/topic/%E2%80%9Dhttps://www.alexissdawn.com/blog%E2%80%9D

    Why is it grabbing another page and putting it into the code before it puts the link I coded it for?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I see this in the source for your site:

    <div id=”navbar”>
    <a href=”https://www.alexissdawn.com/blog”>Home</a>
    <a href=”https://www.ads-software.com”>WordPress</a>
    <a href=”https://www.dontdream.it/?p=20”>Oklahoma!</a>
    </div>

    Note how the double-quote marks are not straight quotes ("). Basically, your browser is not interpreting them as quotes. Rather, it sees the opening as part of the path.

    Thread Starter alexissdawn

    (@alexissdawn)

    AH! You’re right! That was one of those weird little things. Thanks for catching that! It’s working now! THANK YOU!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Double URLs on links’ is closed to new replies.