preserve hash when removing slugs

This commit is contained in:
ccd0 2014-04-19 16:26:37 -07:00
parent 5d569321d6
commit 4f8b640e2c

View File

@ -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