diff --git a/src/backend/filters/urlRewrite.ts b/src/backend/filters/urlRewrite.ts index 529c117..d29819b 100644 --- a/src/backend/filters/urlRewrite.ts +++ b/src/backend/filters/urlRewrite.ts @@ -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}`); } }