Browse Source

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
Juan Baez 5 years ago
parent
commit
3ab7bcf8ea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      server/modules/rendering/html-core/renderer.js

+ 2 - 2
server/modules/rendering/html-core/renderer.js

@@ -37,8 +37,8 @@ module.exports = {
       }
       }
 
 
       // -> Strip host from local links
       // -> 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
       // -> Assign local / external tag