In url mappings:
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
"/index"(controller: 'home', action: 'index')
"/"(controller: 'home', action: 'index')
If the user uses index with the root url it redirects fine.
Controllers + action redirects fine.
But the root ("/") itself does not redirect to the home controller.
I'm also using spring security
grails.plugin.springsecurity.controllerAnnotations.staticRules = [
[pattern: '/', access: ['permitAll']],
[pattern: '/index', access: ['permitAll']]
]
What simple thing am I missing?