summaryrefslogtreecommitdiffhomepage
path: root/server.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-05-24 01:59:00 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-05-24 01:59:00 +0200
commitca5fa047343470826da1843b6ce5a0ae9f02a5fb (patch)
tree57e13c9f6852995f8e7c847d22a13fecd9ccd1ba /server.go
parent4e7535fd73d232a51629fc33f65a61754a155b22 (diff)
More changes
Diffstat (limited to 'server.go')
-rw-r--r--server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.go b/server.go
index 502a038..8d8d057 100644
--- a/server.go
+++ b/server.go
@@ -34,7 +34,7 @@ func router(w http.ResponseWriter, r *http.Request) {
http.Error(w, "An error occured", http.StatusInternalServerError)
return
} else if err != nil {
- lang = "en/"
+ lang = "en"
} else {
lang = cookie.Value
}
@@ -44,7 +44,7 @@ func router(w http.ResponseWriter, r *http.Request) {
Name: "redirect",
Path: "/",
})
- http.Redirect(w, r, lang, http.StatusMovedPermanently)
+ http.Redirect(w, r, lang + "/", http.StatusMovedPermanently)
return
}