mirror of
https://github.com/requarks/wiki.git
synced 2026-10-15 06:01:58 -05:00
fix: handle links to same host but different port as external
This commit is contained in:
1 file changed
+1
-1
@@ -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, '')
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user