diff options
author | Wu Cheng-Han | 2016-10-10 20:57:17 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-10-10 20:57:17 +0800 |
commit | 7a46c9fc5cd72ed66adedb7c451bc6c96d6c60d6 (patch) | |
tree | 0dd31cc7a744bc79c70c83e2d413ef298eb39f19 | |
parent | 4ea5191d308881cf067f1183ca78f9bf805c7668 (diff) |
Fix some incorrect redirects
-rw-r--r-- | public/js/index.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/public/js/index.js b/public/js/index.js index b5ebe954..b139ad2a 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -2201,20 +2201,20 @@ socket.on('info', function (data) { console.error(data); switch (data.code) { case 403: - location.href = "./403"; + location.href = serverurl + "/403"; break; case 404: - location.href = "./404"; + location.href = serverurl + "/404"; break; case 500: - location.href = "./500"; + location.href = serverurl + "/500"; break; } }); socket.on('error', function (data) { console.error(data); if (data.message && data.message.indexOf('AUTH failed') === 0) - location.href = "./403"; + location.href = serverurl + "/403"; }); var retryOnDisconnect = false; var retryTimer = null; |