Skip to content

Commit 7a46c9f

Browse files
committed
Fix some incorrect redirects
1 parent 4ea5191 commit 7a46c9f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

public/js/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2201,20 +2201,20 @@ socket.on('info', function (data) {
22012201
console.error(data);
22022202
switch (data.code) {
22032203
case 403:
2204-
location.href = "./403";
2204+
location.href = serverurl + "/403";
22052205
break;
22062206
case 404:
2207-
location.href = "./404";
2207+
location.href = serverurl + "/404";
22082208
break;
22092209
case 500:
2210-
location.href = "./500";
2210+
location.href = serverurl + "/500";
22112211
break;
22122212
}
22132213
});
22142214
socket.on('error', function (data) {
22152215
console.error(data);
22162216
if (data.message && data.message.indexOf('AUTH failed') === 0)
2217-
location.href = "./403";
2217+
location.href = serverurl + "/403";
22182218
});
22192219
var retryOnDisconnect = false;
22202220
var retryTimer = null;

0 commit comments

Comments
 (0)