Fix locale interceptor code snippet

See gh-36105
See gh-36099
This commit is contained in:
Sébastien Deleuze
2026-01-07 09:52:33 +01:00
parent e1402fd252
commit 192da6229c
2 changed files with 2 additions and 2 deletions
@@ -83,4 +83,4 @@ that contain a parameter named `siteLanguage` now changes the locale. So, for ex
a request for the URL `https://domain.com/home.view?siteLanguage=nl` changes the site
language to Dutch. The following example shows how to intercept the locale:
include-code::./WebConfiguration[tag=snippet,indent=0]
include-code::./WebConfiguration[tag=snippet,indent=0,chomp=-tags]
@@ -37,7 +37,7 @@ class WebConfiguration {
setInterceptors(LocaleChangeInterceptor().apply {
paramName = "siteLanguage"
})
/* @chomp:line urlMap = mapOf("/**/*.view" to "someController") */urlMap = mapOf("/**/*.view" to "someController")
urlMap = mapOf("/**/*.view" to "someController")
}
}
// end::snippet[]