Reputation: 105
Bit of a weird one - On just one page of a site I've been working, certain html links are not working - the hrefs are relative and are definitely the right links however when you click on them you are not taken away from the current page
http://www.luxury-spa-breaks.com/spas/celtic-manor/spa-days
You'll see that there's only a handful of links that work - all the top nav doesn't, as well as most of the left hand side nav.
This wasn't built using word press, joomla etc. This happens across browsers too.
Your help would be massively appreciated.
Upvotes: 0
Views: 293
Reputation: 42496
It looks like the problem is in a jQuery plugin, specifically jquery.tabs.js
:
tabs.click(function() {
var $this = $(this),
activeTab = $this.find('a').attr('href');
if(!$this.hasClass('active')){
$this.addClass('active').siblings().removeClass('active');
tabContents.hide().filter(activeTab).fadeIn(2000);
}
return false;
});
Note at the end of that function that it returns false
. You're basically having JS prevent the default action on all of your navigation tabs.
Upvotes: 1