diff --git a/nodes/core/io/21-httpin.html b/nodes/core/io/21-httpin.html
index 4756aed23..0b27d3226 100644
--- a/nodes/core/io/21-httpin.html
+++ b/nodes/core/io/21-httpin.html
@@ -91,7 +91,7 @@
return this.name?"node_label_italic":"";
},
oneditprepare: function() {
- var root = document.location.pathname.slice(0,-1);
+ var root = RED.settings.httpNodeRoot.slice(0,-1);
if (root == "") {
$("#node-input-tip").hide();
} else {