I'm having the problem in my JS it's adding the Current class to all #li.
html
<ul id="navlist">
<li id="home"><a href="/">Home</a></li>
<li id="sobre"><a href="/sobre">Sobre</a>
</li>
</ul>
jquery
alert(window.location.pathname);
$("#navlist li").each(function(){
if($(this).attr("href")==window.location.pathname)
$(this).addClass("current");
});