From f2c0357b2ffcde5c6caf93c29b1cf365e65d6773 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Wed, 16 Jul 2025 18:04:59 +0530 Subject: [PATCH] fix: double slash on opening hub urls --- core/core.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core.ts b/core/core.ts index 915099a3e..dc6651eaa 100644 --- a/core/core.ts +++ b/core/core.ts @@ -359,7 +359,10 @@ export class Core { on("controlPlane/openUrl", async (msg) => { const env = await getControlPlaneEnv(this.ide.getIdeSettings()); - let url = `${env.APP_URL}${msg.data.path}`; + const urlPath = msg.data.path.startsWith("/") + ? msg.data.path.slice(1) + : msg.data.path; + let url = `${env.APP_URL}${urlPath}`; if (msg.data.orgSlug) { url += `?org=${msg.data.orgSlug}`; }