fix: revert regressions from recent integration/releases/app-href changes (#6514)

This commit is contained in:
Thomas authored and GitHub committed 2026-08-03 17:37:53 +02:00
1 parent b4fba47a23
commit 778533a62e
11 files changed
+8 -31

No files matched your search

-4
View File
@@ -5,10 +5,6 @@ export const appHrefSchema = z
.trim()
.url()
.regex(/^(?!javascript)[a-zA-Z]*:\/\//i) // javascript: is not allowed, i for case insensitive (so Javascript: is also not allowed)
.or(z.string().trim().includes("[homarr_base]"))
.or(z.string().trim().includes("[homarr_hostname]"))
.or(z.string().trim().includes("[homarr_domain]"))
.or(z.string().trim().includes("[homarr_protocol]"))
.or(z.literal(""))
.transform((value) => (value.length === 0 ? null : value))
.nullable();