Browse Source
fix: handle links to same host but different port as external
pull/5144/head
NGPixel
3 years ago
No known key found for this signature in database
GPG Key ID: 8FDA2F1757F60D63
1 changed files with
1 additions and
1 deletions
-
server/modules/rendering/html-core/renderer.js
|
|
@ -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, '') |
|
|
|
} |
|
|
|
|
|
|
|