diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-05-24 01:59:00 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-05-24 01:59:00 +0200 |
commit | ca5fa047343470826da1843b6ce5a0ae9f02a5fb (patch) | |
tree | 57e13c9f6852995f8e7c847d22a13fecd9ccd1ba /server.go | |
parent | 4e7535fd73d232a51629fc33f65a61754a155b22 (diff) |
More changes
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |