I am trying to track what the URL the user is on and add a remove a class based on that URL. Can someone help me out?
Edit*
This is what I have right now and my page is just reloading
var $webPage = "http://localhost/collin-sanderson/";
if (location.href = $webPage) {
$('body').addClass('home')
}
else {
$('body').removeClass('home')
}