Search code examples
htmlbrowseranchorhref

<a href=" "> not working


The following hyperlink does not work, though it works when you click open in new tab button.

<div class="span12 category-products" style="margin: 0 auto;">
<div class="toolbar">
    <div class="row big_with_description" style="position:relative;">                                                                   
        <a href="http://www.grewal.nl/reviveme/repair/mobile.html">
            <div class="span5 product hover">
                <img src="http://www.grewal.nl/reviveme/media/catalog/category/mobile2.jpg" class="category-thumbnail product-retina" width="499" height="268" alt="Mobile">    
            </div>
        </a>
    </div>
</div>

I have tried using Chrome and Firefox. The live page can be seen here.


Solution

  • If you disable JavaScript the link works. In ajaxtoolbar.js you have the following code:

    $jq('a','.toolbar').click(function(event) {
        link    =   $jq(this).attr('href');
    
        if((link.search("mode=")!=-1||link.search("dir=")!=-1||link.search("price=")!=-1||link.search("p=")!=-1)&&(toolbarsend==false)){
            event.preventDefault();
            ajaxtoolbar.onSend(link,'get');
        }
    
        return false;
    
    });
    

    The return false; prevents the link from triggering.