About your problem, in grails-app / conf / Config.groovy , you can specify the server URL, for example:
environments {
production {
grails.serverURL = "http://localhost/"
....
}
development {
grails.serverURL = "http://localhost:8080/${appName}"
...
}
...
}
Then the createLink method must be accurate. As I know, this applies to a non-IntelliJ Grails configuration.
EDIT: I seem to have missed some information: to make createLink starts with "http: // localhost /", you need to add another line to Config.groovy:
grails.app.context = "/"
source
share