Partial prefix match not allowed in istio

Hi Team,

I have two endpoint:


I just need to redirection if the id starts “A-” and i want to do it only with prefix matching and not regex. I’m trying to do this with following configuration:

  • match:
    • uri:
      prefix: “/api/v2/foo/A-”
      uri: “/api/v1/bar/A-”

But for some reason its not working. Could someone help me with this.