From 4f8b640e2cd31543e93291f53b1e5623995ad78c Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 19 Apr 2014 16:26:37 -0700 Subject: [PATCH] preserve hash when removing slugs --- src/General/Main.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/General/Main.coffee b/src/General/Main.coffee index af2891c90..8af1e3aae 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -16,7 +16,8 @@ Main = 'index' if g.VIEW is 'thread' g.THREADID = +pathname[3] - history.replaceState null, '', pathname.slice(0,4).join('/') if pathname.length > 4 + if pathname.length > 4 + history.replaceState null, '', pathname.slice(0,4).join('/') + location.hash # flatten Config into Conf # and get saved or default values