Creating Grails URL Graphics

How to bind all urls in Grails?

Next Grails UrlMapping ..

class UrlMappings {
  static mappings = {
    "/$something"{
      controller = "something"
      action = "something"
    }
  }
}

.. seems to fit ^/[^/]*, but how do I create a url that matches all urls ( ^/.*)?

+5
source share
1 answer

You are looking for a double combination **. Example:

   class UrlMappings {
      static mappings = {
        "/**"(controller: "something", action: "something")
      }
    }
+14
source

All Articles