From 58a2d84c0eae26ad2e21284ed682908174c2392b Mon Sep 17 00:00:00 2001
From: Greg Fodor <gfodor@gmail.com>
Date: Mon, 26 Mar 2018 18:57:11 -0700
Subject: [PATCH] Fix for new hub api

---
 src/hub.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/hub.js b/src/hub.js
index 737e697bd..f1bb09839 100644
--- a/src/hub.js
+++ b/src/hub.js
@@ -259,7 +259,8 @@ const onReady = async () => {
     return;
   }
 
-  const hubId = document.location.pathname.substring(1);
+  const hubId = document.location.pathname.substring(1).split("/")[0];
+  console.log(`Hub ID: ${hubId}`);
   const res = await fetch(`/api/v1/hubs/${hubId}`);
   const data = await res.json();
   const hub = data.hubs[0];
-- 
GitLab