fix: ensure proper slashes

This commit is contained in:
Derrick Hammer 2023-10-16 22:00:25 -04:00
parent 238195ad98
commit 5d97702048
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ export default class URLRewriteFilter implements ContentFilter {
urlValue.startsWith("../") ||
urlValue.startsWith("http")
) {
if (!urlValue.startsWith("/")) {
urlValue = `/${urlValue}`;
}
$(element).attr(attrName, `/browse${urlValue}`);
}
}