feat(ui): Support @ prefix in URL routing

- Add handling for URLs starting with `@` character
    - Strip `@` prefix to allow direct URL access bypassing urlprefix
v4
veypi 20 hours ago
parent bd5604a425
commit 71f00ffdfd

@ -384,8 +384,9 @@ class VBase {
} else { } else {
url = String(input); url = String(input);
} }
if (url.startsWith('@')) {
if (urlprefix && !url.startsWith('http://') && !url.startsWith('https://')) { url = url.slice(1)
} else if (urlprefix && !url.startsWith('http://') && !url.startsWith('https://')) {
url = urlprefix + url; url = urlprefix + url;
} }

Loading…
Cancel
Save