How can I use createLink() to create a link to the root of my Grails project?
You can specify a uri
of '/'
:
<a href="${createLink(uri: '/')}">link text</a>
I use this code:
<g:link uri="/">Home</g:link>
Try
createLink(absolute : 'true')
This should point to http://localhost:8080/yourproject/
(on default set up)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With