From 3ab7bcf8eaa33b79a6247e689744f95ac2d7d9ab Mon Sep 17 00:00:00 2001 From: Juan Baez Date: Sun, 8 Sep 2019 19:09:46 -0600 Subject: [PATCH] fix: host ref in html-core renderer (#1021) Fixing typo on: "server\modules\rendering\html-core\renderer.js" Lines 40 and 41. Invalid reference to "WIKI.config.site.host" -- should be: "WIKI.config.host" This was causing rendering issues when attempting to create some sample pages; such as: https://github.com/jbaez001/markdown-cheatsheet --- server/modules/rendering/html-core/renderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/modules/rendering/html-core/renderer.js b/server/modules/rendering/html-core/renderer.js index c76fe6f5..085b9610 100644 --- a/server/modules/rendering/html-core/renderer.js +++ b/server/modules/rendering/html-core/renderer.js @@ -37,8 +37,8 @@ module.exports = { } // -> Strip host from local links - if (isHostSet && href.indexOf(WIKI.config.site.host) === 0) { - href = href.replace(WIKI.config.site.host, '') + if (isHostSet && href.indexOf(WIKI.config.host) === 0) { + href = href.replace(WIKI.config.host, '') } // -> Assign local / external tag