diff --git a/src/routes/home.go b/src/routes/home.go index 176c2a3..78202e1 100644 --- a/src/routes/home.go +++ b/src/routes/home.go @@ -71,8 +71,10 @@ func PostHome(c *gin.Context) { translated := translateUrl(body.URL) if translated == "" { + theme := utils.GetThemeFromEnv() c.HTML(400, "home.html", gin.H{ "errorMessage": "Invalid stack overflow/exchange URL", + "theme": theme, }) return }