diff options
author | Yorhel <git@yorhel.nl> | 2020-08-06 09:56:39 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-08-06 13:30:20 +0200 |
commit | 55fd685c182397616be8c5af1d8db996b1d2d9b1 (patch) | |
tree | 231a4a9bb7dc364f538c8ca91af8b3106e5d3732 /elm | |
parent | 96084614898f30f06b63fe121b36ba1a25c4f9e7 (diff) |
Discussions: Make /t#.# load the correct page without redirect
This removes the need for the post_url() function.
This is a small step towards supporting non-continuous post numbers.
Diffstat (limited to 'elm')
-rw-r--r-- | elm/sethash.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/elm/sethash.js b/elm/sethash.js new file mode 100644 index 00000000..3441a650 --- /dev/null +++ b/elm/sethash.js @@ -0,0 +1,2 @@ +if(pageVars.sethash && location.hash.length <= 1) + location.hash = pageVars.sethash; |