Search code examples
grailsgsp

Add multiple values in id attribute of glink tag


Is it possible to add multiple values in the id attribute of glink tag?

I want to get a url like: /place/view/home/7? (/< controller >/< action >/< name >/< id >?params)

is it possible with glink tag?


Solution

  • If I understand correctly what you're looking for is the params option,

    <g:link controller="cname" action="act" id="1" params="[sort: 'title']" />