From 4b1f8d1b523d1dccb28b59eabb0cfd7306c6ab3c Mon Sep 17 00:00:00 2001 From: pnthr Date: Wed, 29 Apr 2026 11:51:21 +0300 Subject: [PATCH 1/2] fixed path issues for profile checks --- webui/src/page/ServerProfilePage.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webui/src/page/ServerProfilePage.tsx b/webui/src/page/ServerProfilePage.tsx index 91ecdb0..fbc4a22 100644 --- a/webui/src/page/ServerProfilePage.tsx +++ b/webui/src/page/ServerProfilePage.tsx @@ -148,8 +148,9 @@ const Page: Component = () => { ) } - const resolved = (new URL(path, window.location.origin)).pathname - if (!resolved.startsWith(profileRoot)) { + const resolved = new URL(path, indexUrl).pathname + const profileRootPath = new URL(profileRoot).pathname + if (!resolved.startsWith(profileRootPath)) return (

Profile contains invalid paths.

From 04f77ea8ed096c6886581598d680ef16622222a3 Mon Sep 17 00:00:00 2001 From: pnthr Date: Wed, 29 Apr 2026 22:26:28 +0300 Subject: [PATCH 2/2] oops --- webui/src/page/ServerProfilePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/src/page/ServerProfilePage.tsx b/webui/src/page/ServerProfilePage.tsx index fbc4a22..834e3c8 100644 --- a/webui/src/page/ServerProfilePage.tsx +++ b/webui/src/page/ServerProfilePage.tsx @@ -150,7 +150,7 @@ const Page: Component = () => { const resolved = new URL(path, indexUrl).pathname const profileRootPath = new URL(profileRoot).pathname - if (!resolved.startsWith(profileRootPath)) + if (!resolved.startsWith(profileRootPath)) { return (

Profile contains invalid paths.