Use of location.path to trigger search