From 10ef13e9d5e82578d533b7fe36a1d090a726550a Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Tue, 27 Sep 2016 22:16:26 -0400 Subject: [PATCH] Causes some history glitches --- CTFd/static/original/js/chalboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CTFd/static/original/js/chalboard.js b/CTFd/static/original/js/chalboard.js index 999a240..932fe91 100644 --- a/CTFd/static/original/js/chalboard.js +++ b/CTFd/static/original/js/chalboard.js @@ -271,7 +271,7 @@ $('.nav-tabs a').click(function (e) { $('#chal-window').on('hidden.bs.modal', function() { $('.nav-tabs a:first').tab('show'); - history.pushState("", document.title, window.location.pathname + window.location.search); + window.location.replace(window.location.href.split('#')[0] + '#'); }); setInterval(update, 300000);