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