GRAILS-10908 - improve url mapping constraint handling