From 99f2a17e3f7f1d5b193a2061840434d8598e871f Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 5 Dec 2016 11:05:18 -0800 Subject: fixing urlFmt, redundant path --- system/admin/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/admin/handlers.go b/system/admin/handlers.go index d9f6ce6..e91c5db 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -964,7 +964,7 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { nextStatus = statusDisabled } - urlFmt := req.URL.Path + "/admin/posts?count=%d&offset=%d&status=%s&type=%s" + urlFmt := req.URL.Path + "?count=%d&offset=%d&status=%s&type=%s" prevURL := fmt.Sprintf(urlFmt, count, offset-1, status, t) nextURL := fmt.Sprintf(urlFmt, count, offset+1, status, t) start := 1 + count*offset -- cgit v1.2.3