fix: more url fixes
This commit is contained in:
parent
a50a78ea47
commit
f7720f775c
|
@ -55,12 +55,10 @@ export default class URLRewriteFilter implements ContentFilter {
|
||||||
if (!isExternal || !isICANN(url)) {
|
if (!isExternal || !isICANN(url)) {
|
||||||
if (!isExternal) {
|
if (!isExternal) {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
urlValue = path.join(rUrl.pathname, urlValue);
|
url = path.join(rUrl.pathname, urlValue);
|
||||||
}
|
}
|
||||||
urlValue = `${swUrl.protocol}//${swUrl.hostname}/browse/${rUrl.hostname}${urlValue}`;
|
url = `${swUrl.protocol}//${swUrl.hostname}/browse/${rUrl.hostname}${urlValue}`;
|
||||||
console.log(urlValue);
|
console.log(url);
|
||||||
|
|
||||||
$(element).attr(attrName, urlValue);
|
|
||||||
}
|
}
|
||||||
return `${url} ${descriptor}`;
|
return `${url} ${descriptor}`;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue