diff --git a/src/react-components/hub-create-panel.js b/src/react-components/hub-create-panel.js
index 30c452e3669472d67a15b8e1704fcef2cef8ab2e..1abb749612baa6f8b8104cdd034a4d9b9531536e 100644
--- a/src/react-components/hub-create-panel.js
+++ b/src/react-components/hub-create-panel.js
@@ -99,7 +99,7 @@ class HubCreatePanel extends Component {
 
     const hub = await res.json();
 
-    if (document.location.host === process.env.RETICULUM_SERVER) {
+    if (!process.env.RETICULUM_SERVER || document.location.host === process.env.RETICULUM_SERVER) {
       document.location = hub.url;
     } else {
       document.location = `/hub.html?hub_id=${hub.hub_id}`;