From ce8f0256a1f859a0f3be4b90d73192422bcf73c2 Mon Sep 17 00:00:00 2001 From: yirenyishi Date: Sun, 2 Dec 2018 20:15:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/BlogController.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/BlogController.go b/controllers/BlogController.go index 58d5f94..dfae81b 100644 --- a/controllers/BlogController.go +++ b/controllers/BlogController.go @@ -158,7 +158,7 @@ func (this *BlogController) Del() { func (this *BlogController) New() { uid := this.GetSession("userid") if uid == nil { - this.Redirect("login.html", 302) + this.Redirect("/login", 302) return } this.TplName = "newblog.html"