From 71f00ffdfd4921cc84c65bca6c27cc3cf1324d02 Mon Sep 17 00:00:00 2001 From: veypi Date: Wed, 29 Apr 2026 20:14:47 +0800 Subject: [PATCH] feat(ui): Support @ prefix in URL routing - Add handling for URLs starting with `@` character - Strip `@` prefix to allow direct URL access bypassing urlprefix --- ui/vbase.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/vbase.js b/ui/vbase.js index 8fcd1b4..9db7dca 100644 --- a/ui/vbase.js +++ b/ui/vbase.js @@ -384,8 +384,9 @@ class VBase { } else { url = String(input); } - - if (urlprefix && !url.startsWith('http://') && !url.startsWith('https://')) { + if (url.startsWith('@')) { + url = url.slice(1) + } else if (urlprefix && !url.startsWith('http://') && !url.startsWith('https://')) { url = urlprefix + url; }