nav bar links bump to smugmug home (sometimes)

Dan-ODan-O Registered Users Posts: 25 Big grins
edited May 30, 2009 in SmugMug Support
Hi all, question about nav bar links.

I recently added two items to my nav bar, an "events" link and a "contact" link which both redirect to a "journal" style gallery.

However, it seems that if I click on one, and then the other consecutively, the second click redirects to the Smugmug home page. It doesn't matter what the order is, as far as I can tell.

If I don't click consecutively, such as "events" to "photography" then to "contact" the problem doesn't happen.

Am I crazy? Is it just me, or do others find the same problem?

here's my page:

www.compass-photo.com

Can anyone else see this happening?

Thanks in advance!

Comments

  • JoeGJoeG Registered Users Posts: 81 Big grins
    edited May 30, 2009
    It's happening to me too.... If I click "Contact" then click "Contact" again, it'll do it. Weird.
    Joe Gearhart
    Photos | Blogs | Twitter | MySpace | Facebook
  • JoeGJoeG Registered Users Posts: 81 Big grins
    edited May 30, 2009
    If you'll notice.... if you click "Events" or "Contact" and the page loads. If you just place your mouse over those links, there is an extra "gallery/" in the link.

    It should be:
    http://www.compass-photo.com/gallery/7595214_iGr59

    but it's coming up as:
    http://www.compass-photo.com/gallery/gallery/7595214_iGr59

    I don't know why, but I hope it helps.
    Joe Gearhart
    Photos | Blogs | Twitter | MySpace | Facebook
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited May 30, 2009
    Change your navbar to this. All your URL links must either start with http:// or with /. As you have them now, they are relative links which add on the current URL to the front of what you have and then try to go there. You must make them absolute links so they go the same place regardless of where you are in your site. That means they must start with either http:// or with /.
    <div id="navcontainer">
    <ul>
    <li><a href="/">Home</a></li>
    <li><a href="[COLOR=red]/[/COLOR]gallery/7595214_iGr59">Events</a></li>
    <li><a href="/Photography">Photography</a></li>
    <li><a href="/Specialty">Specialty</a></li>
    <li><a href="http://a-better-perspective.blogspot.com">Blog</a></li>
    <li><a href="[COLOR=red]/[/COLOR]gallery/8239577_5vqry">Contact</a></li>
    </ul>
    </div>
    
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • Dan-ODan-O Registered Users Posts: 25 Big grins
    edited May 30, 2009
    Thanks both of you, it's fixed based on your observations. Extra eyes are always helpful. I thought I was nuts, and was probably too frustrated to notice that the back slashes were missing from my links.rolleyes1.gif

    Dan
Sign In or Register to comment.