PDA

View Full Version : nav bar links bump to smugmug home (sometimes)


Dan-O
May-30-2009, 11:21 AM
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!

JoeG
May-30-2009, 11:31 AM
It's happening to me too.... If I click "Contact" then click "Contact" again, it'll do it. Weird.

JoeG
May-30-2009, 11:33 AM
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.

jfriend
May-30-2009, 11:54 AM
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="/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="/gallery/8239577_5vqry">Contact</a></li>
</ul>
</div>

Dan-O
May-30-2009, 06:07 PM
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.:rolleyes

Dan