prevent the same path with different condition in static route matching