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 18 hours ago
parent bd5604a425
commit 71f00ffdfd

@ -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;
}

Loading…
Cancel
Save