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