1

I have the following url mapping:

  "/Some-Name".toLowerCase() {
    controller ="user"
    action = "show"
    id = "f274b72e1309467e70"
  }

Note this is not a duplicate of this: How to make my URL mapping case insensitive? It is a different case.

How can I make this URL mapping case insensitive?

Community
  • 1
  • 1
Michael
  • 32,527
  • 49
  • 210
  • 370

1 Answers1

1

Maybe you can try to use custom validator in constraint section. Please note that code below is not tested.

   "/$path" {
      controller ="user"
      action = "show"
      id = "f274b72e1309467e70"
      constraints {
         path((validator: { return it.equalsIgnoreCase("Some-Name") })
      }
   }
Grzegorz Gajos
  • 2,253
  • 19
  • 26