summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/admin/handlers.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index d6c3baa..4a0453d 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -1009,6 +1009,12 @@ func deleteHandler(res http.ResponseWriter, req *http.Request) {
return
}
+ // catch specifier suffix from delete form value
+ if strings.Contains(t, "_") {
+ spec := strings.Split(t, "_")
+ t = spec[0]
+ }
+
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)