summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-08-06 14:03:08 +0200
committerYorhel <git@yorhel.nl>2020-08-06 14:03:10 +0200
commit4ff57327c4c95652c0634ca97ed5495c037fc16e (patch)
tree2523f24f46f02c7ed038ca9c36bec020a4cb9acd /lib
parent7004c6deffd56b88df93a15ebf75ec593443aa4b (diff)
Discussions: Fix emulation of location.hash
Setting location.hash directly has the downside of adding an entry to the browser's history, which is annoying.
Diffstat (limited to 'lib')
-rw-r--r--lib/VNWeb/Discussions/Thread.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Discussions/Thread.pm b/lib/VNWeb/Discussions/Thread.pm
index 2b3df320..9928592f 100644
--- a/lib/VNWeb/Discussions/Thread.pm
+++ b/lib/VNWeb/Discussions/Thread.pm
@@ -196,7 +196,7 @@ TUWF::get qr{/$RE{tid}(?:(?<sep>[\./])$RE{num})?}, sub {
'UPDATE notifications SET read = NOW() WHERE uid =', \auth->uid, 'AND ltype = \'t\' AND iid = vndbid_num(', \$id, ') AND read IS NULL'
) if auth && $t->{count} <= $page*25;
- framework_ title => $t->{title}, $num ? (js => 1, pagevars => {sethash=>"#$num"}) : (), sub {
+ framework_ title => $t->{title}, $num ? (js => 1, pagevars => {sethash=>$num}) : (), sub {
metabox_ $t;
elm_ 'Discussions.Poll' => $POLL_OUT, {
question => $t->{poll_question},