diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-05 11:05:18 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-05 11:05:18 -0800 |
commit | 99f2a17e3f7f1d5b193a2061840434d8598e871f (patch) | |
tree | 934d1ca07eee56c729817d872eb953ee3c31b161 /system/admin/handlers.go | |
parent | 93fbf89235828049eb1aef485bc8fef890ddf8e6 (diff) |
fixing urlFmt, redundant path
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r-- | system/admin/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |