From da8ba3cf8ca870db9ed32c106496c309a5ed2227 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 20 Apr 2014 10:46:32 -0700 Subject: [PATCH] change /res/ URLs to /thread/ so our quote links don't reload the page --- 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 a56288c40..a1ddbf986 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] - 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