diff --git a/src/General/Main.coffee b/src/General/Main.coffee index d9ce6e848..d4e66be15 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -75,7 +75,7 @@ Main = when 'sys.4chan.org' Report.init() PostSuccessful.init() if g.VIEW is 'post' - if /\/imgboard\.php$/.test(location.pathname) and (match = location.search.match /\bres=(\d+)/) + if Conf['404 Redirect'] and /\/imgboard\.php$/.test(location.pathname) and (match = location.search.match /\bres=(\d+)/) $.ready -> if $.id('errmsg')?.textContent is 'Error: Specified thread does not exist.' Redirect.navigate 'thread',