fix: ts-ignore urlJoin
This commit is contained in:
parent
f4294ce880
commit
509479aec9
|
@ -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}`;
|
||||||
|
|
Loading…
Reference in New Issue