Use only one call to $location.path()