Change $location.path depending on the selectors.