From e4c54beaf8017095f18545b82863bfc98f6fae30 Mon Sep 17 00:00:00 2001 From: StevenNMeza Date: Fri, 21 May 2021 18:43:19 +0200 Subject: [PATCH] Keep sort on user page --- views/user.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/user.pug b/views/user.pug index 520f826..94678d3 100644 --- a/views/user.pug +++ b/views/user.pug @@ -144,7 +144,7 @@ html if data.before || data.after p view more: if data.before && !data.user_front - a(href="/u/" + data.username + data.post_type + "?before=" + data.before + "") ‹ prev + a(href="/u/" + data.username + data.post_type + (sortby === "new" ? "?" : "?sort=" + sortby + "&") + (!past ? "" : "t=" + past + "&") + "before=" + data.before + "") ‹ prev if data.after - a(href="/u/" + data.username + data.post_type + "?after=" + data.after + "") next › + a(href="/u/" + data.username + data.post_type + (sortby === "new" ? "?" : "?sort=" + sortby + "&") + (!past ? "" : "t=" + past + "&") + "after=" + data.after + "") next › include includes/footer.pug