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

pull/5144/head
NGPixel 3 years ago
parent a652e43ab1
commit a50712ea80
No known key found for this signature in database
GPG Key ID: 8FDA2F1757F60D63

@ -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…
Cancel
Save