change /res/ URLs to /thread/ so our quote links don't reload the page

This commit is contained in:
ccd0 2014-04-20 10:46:32 -07:00
parent ac59c19991
commit da8ba3cf8c

View File

@ -16,7 +16,8 @@ Main =
'index'
if g.VIEW is 'thread'
g.THREADID = +pathname[3]
if pathname.length > 4
if pathname[2] isnt 'thread' or pathname.length > 4
pathname[2] = 'thread'
history.replaceState null, '', pathname.slice(0,4).join('/') + location.hash
# flatten Config into Conf