use the route options hash when it's present to make the path-matching regex more accurate