Modified step.path to allow for URLs with query parameters