Fix WebUI

This commit is contained in:
Yukino Song
2025-05-28 03:47:29 +08:00
parent 03194a6fa3
commit b2ec048333
3 changed files with 16 additions and 4 deletions

View File

@@ -101,7 +101,7 @@
const url = new URL(window.location);
const redirectUrl = url.searchParams.get('redir');
const hash = url.hash;
if (redirectUrl) {
if (redirectUrl && redirectUrl.startsWith('.')) {
location.href = redirectUrl + hash;
} else {
location.href = './' + hash;