diff --git a/src/hub.js b/src/hub.js index 737e697bd7af86824dae2f5aa92a5784c675675f..f1bb09839d629bf8dda1ae23a74624a49e7455c1 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];