diff options
| author | Robin Appelman | 2017-09-21 21:24:03 +0200 |
|---|---|---|
| committer | rr- | 2017-09-23 16:10:03 +0200 |
| commit | 6d78c5e55d28e6eea09a0cd873491b3ae52cefa4 (patch) | |
| tree | af5df17a99098564935b107413b5b45f4e403241 /client | |
| parent | 795891767ed7c96ec5d1d7dceba11f1ef1d62be2 (diff) | |
client/posts: fix keyboard nav to next/prev post
The exact search query was discarded.
Diffstat (limited to 'client')
| -rw-r--r-- | client/js/views/post_main_view.js | 4 |
1 files 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)); } }); } |