From 3eb23e1e9dceebb890eb28a8977a05452097b290 Mon Sep 17 00:00:00 2001 From: kilo Date: Tue, 31 Oct 2017 02:36:08 +0100 Subject: [PATCH] Update themeToggle.go --- controllers/themeToggle/themeToggle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/themeToggle/themeToggle.go b/controllers/themeToggle/themeToggle.go index f6b3dfb5..d53de1a3 100644 --- a/controllers/themeToggle/themeToggle.go +++ b/controllers/themeToggle/themeToggle.go @@ -42,7 +42,7 @@ func toggleThemeHandler(c *gin.Context) { http.SetCookie(c.Writer, &http.Cookie{Name: "theme2", Value: theme, Domain: getDomainName(), Path: "/", Expires: timeHelper.FewDaysLater(365)}) //Redirect user to page he was in beforehand - if c.Query("no_redirect") == "" { + if c.Request.URL.Query()["no_redirect"] == nil { c.Redirect(http.StatusSeeOther, c.Param("redirect") + "#footer") } return