diff options
-rw-r--r-- | system/admin/handlers.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go index b7d6ba0..0dfeaa4 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -539,7 +539,8 @@ func deleteHandler(res http.ResponseWriter, req *http.Request) { return } - redir := strings.TrimSuffix(req.URL.Scheme+req.URL.Host+req.URL.Path, "/delete") + redir := strings.TrimSuffix(req.URL.Scheme+req.URL.Host+req.URL.Path, "/edit/delete") + redir = redir + "posts?type=" + t http.Redirect(res, req, redir, http.StatusFound) } |