I'm having trouble rewriting URL's in Grails:
I've got 2 controllers BlogController
and ProjectsController
each with a default def index = { }
and matching view.
Now when I create the following links:
<g:link controller="blog">Blog</g:link>
<g:link controller="projects">Projects</g:link>
They get translated to http://localhost:8080/myapp/blog/index
and http://localhost:8080/myapp/projects/index
. But want them (and all other controllers default action) to be without the trailing /index
.
Can anyone help me do this?