fix: handle links to same host but different port as external
This commit is contained in:
parent
a652e43ab1
commit
a50712ea80
@ -50,7 +50,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// -> Strip host from local links
|
// -> Strip host from local links
|
||||||
if (isHostSet && href.indexOf(WIKI.config.host) === 0) {
|
if (isHostSet && href.indexOf(`${WIKI.config.host}/`) === 0) {
|
||||||
href = href.replace(WIKI.config.host, '')
|
href = href.replace(WIKI.config.host, '')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user