fix: ts-ignore urlJoin

This commit is contained in:
Derrick Hammer 2023-10-18 07:24:29 -04:00
parent f4294ce880
commit 509479aec9
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ export default class URLRewriteFilter implements ContentFilter {
const isExternal = urlValue.startsWith("http"); const isExternal = urlValue.startsWith("http");
if (!isExternal || !isICANN(urlValue)) { if (!isExternal || !isICANN(urlValue)) {
if (!isExternal) { if (!isExternal) {
//@ts-ignore
urlValue = urlJoin(requestor, urlValue); urlValue = urlJoin(requestor, urlValue);
} }
urlValue = `${swUrl.protocol}://${swUrl.hostname}/browse/${urlValue}`; urlValue = `${swUrl.protocol}://${swUrl.hostname}/browse/${urlValue}`;