Search code examples
grails

Link with anchor navigation in Grails


How to make link like /news/index#partition with Grails tag g:link

Current is <g:link controller="news" action="index">News</g:link>


Solution

  • i think you can do

    <a href="${createLink(controller: "news", action:"index") + "#partition"}">News</a>