WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Double URLs on links (3 posts)

  1. alexissdawn
    Member
    Posted 7 years ago #

    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: http://www.alexissdawn.com/blog/contact-me/%E2%80%9Dhttp://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="”http://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:
    http://wordpress.org/support/topic/%E2%80%9Dhttp://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?

  2. Kafkaesqui

    Posted 7 years ago #

    I see this in the source for your site:

    <div id=”navbar”>
    <a href=”http://www.alexissdawn.com/blog”>Home</a>
    <a href=”http://wordpress.org”>WordPress</a>
    <a href=”http://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.

  3. alexissdawn
    Member
    Posted 7 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic