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

4
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

Loading…
Cancel
Save