search working correctly on any page