Unverified Commit a50712ea authored by NGPixel's avatar NGPixel

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

parent a652e43a
......@@ -50,7 +50,7 @@ module.exports = {
}
// -> 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, '')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment