The standard way of creating URLs in grails is:
<a href="${createLink(controller:'news', action: 'show', params: [id: news.id])}">${news.title}</a>
which generates the url: /news/show/102
I want more SEO friendly URLs like:
/news/102/this-is-the-hottest-news-today
What is the cleanest way to do this in Grails? I could use grails URLMapping to map /news/show/102
to /news/102
, but how I do create the complete URL like above?