From da1a1cae22c9a24644f8c5f1c7dd0f6c50680e70 Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Mon, 12 May 2014 18:22:52 +0200 Subject: [PATCH] Prevent going back to connecting page --- js/ConnectingToNetworkPage.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ConnectingToNetworkPage.js b/js/ConnectingToNetworkPage.js index c2a3084..123b3f1 100644 --- a/js/ConnectingToNetworkPage.js +++ b/js/ConnectingToNetworkPage.js @@ -171,6 +171,8 @@ _connectedRedirectDelay = setTimeout(function () { // redirect to it's box page console.log(" redirect to box"); + // replace this page with boxes page in history + window.history.replaceState(null, "", "#boxes"); var linkParams = {localip: boxData.localip,wifiboxid: boxData.wifiboxid}; var link = "#box"; link = d3d.util.replaceURLParameters(link,linkParams);