diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index dec55d596..7362be864 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -1113,15 +1113,11 @@ QR = QR.cooldown.set {req, post, isReply} - if threadID is postID # new thread - URL = "/#{g.BOARD}/res/#{threadID}" + URL = if threadID is postID # new thread + "/#{g.BOARD}/res/#{threadID}" else if g.VIEW is 'index' and !QR.cooldown.auto and Conf['Open Post in New Tab'] # replying from the index - URL = "/#{g.BOARD}/res/#{threadID}#p#{postID}" - if URL - if Conf['Open Post in New Tab'] - $.open "/#{g.BOARD}/res/#{threadID}" - else - window.location = "/#{g.BOARD}/res/#{threadID}" + "/#{g.BOARD}/res/#{threadID}#p#{postID}" + (if Conf['Open Post in New Tab'] then $.open else location.assign) URL if URL QR.status()