diff options
| author | Hunternif <hunternif@gmail.com> | 2019-05-08 00:40:43 +0700 |
|---|---|---|
| committer | Hunternif <hunternif@gmail.com> | 2019-05-08 00:54:20 +0700 |
| commit | 4e5a4dbc2cc8ca6f8b5ff8c4e3ceedda88e323c9 (patch) | |
| tree | f1602a57a9cdf3cc892d2f097e538af94ee644ae /client/html | |
| parent | 555a6ebdb7d25dadc476da6148b2529f32228580 (diff) | |
client: use cachenumber in random post button
Diffstat (limited to 'client/html')
| -rw-r--r-- | client/html/post_main.tpl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/client/html/post_main.tpl b/client/html/post_main.tpl index cb45db0..f170713 100644 --- a/client/html/post_main.tpl +++ b/client/html/post_main.tpl @@ -32,9 +32,15 @@ <article class='random-post'> <% if (ctx.randomPostId) { %> <% if (ctx.editMode) { %> - <a rel='next' href='<%= ctx.getPostEditUrl(ctx.randomPostId, ctx.parameters) %>'> + <a rel='next' href='<%= ctx.getPostEditUrl(ctx.randomPostId, { + query: ctx.parameters.query, + metrics: ctx.parameters.metrics, + cachenumber: Math.round(Math.random() * 1000)}) %>'> <% } else { %> - <a rel='next' href='<%= ctx.getPostUrl(ctx.randomPostId, ctx.parameters) %>'> + <a rel='next' href='<%= ctx.getPostUrl(ctx.randomPostId, { + query: ctx.parameters.query, + metrics: ctx.parameters.metrics, + cachenumber: Math.round(Math.random() * 1000)}) %>'> <% } %> <% } else { %> <a rel='next' class='inactive'> |