fix: ensure proper slashes
This commit is contained in:
parent
238195ad98
commit
5d97702048
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue