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