/ Published in: Groovy
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import org.codehaus.groovy.grails.plugins.codecs.URLCodec class UrlMappings { // Add the URL encode and decode methods as the codec methods are added // after the mappings are processed. "/$department/"{ controller = "home" action = "index" constraints { department(inList:['women','damen','γυναίκες'.encodeAsURL()]) } } } }