Active main tag when child links are loaded
<p>Hi am trying to active li links using filter using below code</p>

<pre><code>jQuery(".common-nav li a").filter(function()
    {
        jQuery(this).parent().removeClass("active");
        var currentUrl=window.location.href;
        return $(this).attr("href")==currentUrl;
    }).parent().addClass("active");
</code></pre>

<p>Now requirement is I need to activate same li tags when user navigates to subcategory pages. 
For instance in first li has 3 subcategory pages which are invoked through link or button. When those pages get invoked first li needs to be activated.</p>

<p>Left nav is common for subacategory pages like below, </p>

<pre><code>&lt;li&gt;first&lt;/li&gt;
&lt;li&gt;second&lt;/li&gt;
&lt;li&gt;third&lt;/li&gt;
&lt;li&gt;four&lt;/li&gt;
</code></pre>

<p>url path will for main nav /defaul/link1, /defaul/link2, /defaul/link3 etc...
url path will be for subcategory /default/sub-cat1,/default/sub-cat2,/default/sub-cat3 etc..</p>
