From c8977ab819c96dadc995e30ac4f750e7616e1836 Mon Sep 17 00:00:00 2001 From: Martin Piffault Date: Wed, 26 Feb 2020 12:20:50 +0100 Subject: [PATCH] Fix line shift for g:link fragment --- src/main/docs/guide/gspLinks.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/docs/guide/gspLinks.adoc b/src/main/docs/guide/gspLinks.adoc index d5f7aee..57e65d4 100644 --- a/src/main/docs/guide/gspLinks.adoc +++ b/src/main/docs/guide/gspLinks.adoc @@ -3,7 +3,7 @@ Let's take a look at one more common GSP tag: `` [source,xml] .grails-app/views/home/index.gsp ---- -include::{sourceDir}/grails-app/views/home/index.gsp[indent=0,lines="34..36"] +include::{sourceDir}/grails-app/views/home/index.gsp[indent=0,lines="33..35"] ---- `` renders an HTML `` tag, but it has the advantage in that it allows you to specify your link target following Grails conventions, such as this example (using the `controller`, `action` and `id` attributes). `` is also smart enough to follow our URL mappings, so if we change the URL mapping for `vehicle/show`, the `` tag will still render the correct URL. There's many more attributes supported by `` - see the http://docs.grails.org/latest/ref/Tags/link.html[Grails documentation] for more.