fix: handle links to same host but different port as external

This commit is contained in:
NGPixel 2022-04-03 15:48:40 -04:00
parent a652e43ab1
commit a50712ea80
No known key found for this signature in database
GPG Key ID: 8FDA2F1757F60D63

View File

@ -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, '')
} }