summaryrefslogtreecommitdiffhomepage
path: root/middleware
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-08 21:32:28 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-08 21:32:28 +0200
commit0f3b1051228328718798fe0b40d02fdb72e3481f (patch)
tree2e3035d10e2ce7dcae2461615e6f428d7ab1a2cd /middleware
parentd02494343cbf2d77fa16e2c3ee56426c73654135 (diff)
Rename some components
Diffstat (limited to 'middleware')
-rw-r--r--middleware/i18n.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/i18n.go b/middleware/i18n.go
index db90270..921534e 100644
--- a/middleware/i18n.go
+++ b/middleware/i18n.go
@@ -34,7 +34,7 @@ func I18n(next http.Handler) http.Handler {
Name: "redirect",
Value: r.URL.Path,
})
- templates.Root(nil, templates.Language()).Render(ctx, w)
+ templates.Base(nil, templates.Language()).Render(ctx, w)
} else {
next.ServeHTTP(w, r.WithContext(ctx))
}