fix: ts-ignore urlJoin

This commit is contained in:
Derrick Hammer 2023-10-17 11:19:46 -04:00
parent 8105efd78c
commit 6c5ec99dff
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,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("/browse/", urlValue); urlValue = urlJoin("/browse/", urlValue);
} else { } else {
urlValue = `/browse/${urlValue}`; urlValue = `/browse/${urlValue}`;