From 6d78c5e55d28e6eea09a0cd873491b3ae52cefa4 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 21 Sep 2017 21:24:03 +0200 Subject: [PATCH] client/posts: fix keyboard nav to next/prev post The exact search query was discarded. --- client/js/views/post_main_view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/js/views/post_main_view.js b/client/js/views/post_main_view.js index 452d63f..d303c21 100644 --- a/client/js/views/post_main_view.js +++ b/client/js/views/post_main_view.js @@ -69,12 +69,12 @@ class PostMainView { }); keyboard.bind(['a', 'left'], () => { if (ctx.prevPostId) { - router.show(uri.formatClientLink('post', ctx.prevPostId)); + router.show(ctx.getPostUrl(ctx.prevPostId, ctx.parameters)); } }); keyboard.bind(['d', 'right'], () => { if (ctx.nextPostId) { - router.show(uri.formatClientLink('post', ctx.nextPostId)); + router.show(ctx.getPostUrl(ctx.nextPostId, ctx.parameters)); } }); }