From 029a2dac2cbbd5d19ff189391ca284c151ebd35c Mon Sep 17 00:00:00 2001 From: Mayhem Date: Mon, 10 Jun 2013 17:25:15 +0200 Subject: [PATCH] Close #1147. --- src/General/Main.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 36ca8436b..5582ffdfe 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -55,7 +55,7 @@ Main = URL = Redirect.to 'file', boardID: g.BOARD.ID filename: pathname[pathname.length - 1] - location.href = URL if URL + location.replace URL if URL return initFeature = (name, module) -> @@ -170,7 +170,7 @@ Main = boardID: g.BOARD.ID threadID: g.THREADID postID: +location.hash.match /\d+/ # post number or 0 - location.href = href or "/#{g.BOARD}/" + location.replace href or "/#{g.BOARD}/" return unless $.hasClass doc, 'fourchan-x'