fix($location): compare against actual instead of current URL