diff --git a/packages/node_modules/@node-red/nodes/core/network/22-websocket.html b/packages/node_modules/@node-red/nodes/core/network/22-websocket.html index 523dc2629..093256495 100644 --- a/packages/node_modules/@node-red/nodes/core/network/22-websocket.html +++ b/packages/node_modules/@node-red/nodes/core/network/22-websocket.html @@ -148,10 +148,12 @@ if (root.slice(-1) != "/") { root = root+"/"; } - if (this.path.charAt(0) == "/") { - root += this.path.slice(1); - } else { - root += this.path; + if (this.path) { + if (this.path.charAt(0) == "/") { + root += this.path.slice(1); + } else { + root += this.path; + } } return root; },