diff --git a/apps/extension/src/shared/components/default-frontend-form/index.tsx b/apps/extension/src/shared/components/default-frontend-form/index.tsx index 596d8dfd..1c766ffd 100644 --- a/apps/extension/src/shared/components/default-frontend-form/index.tsx +++ b/apps/extension/src/shared/components/default-frontend-form/index.tsx @@ -22,7 +22,11 @@ const getFrontendsFromRegistry = (selectedRpc?: string): DisplayedFrontend[] => })); if (selectedRpc) { - registeredFrontends.push({ title: 'Embedded RPC frontend', url: `${selectedRpc}/app/` }); + registeredFrontends.push({ + title: 'Embedded RPC frontend', + /*NB: we merge using the variadic URL constructor here to avoid double-slashes*/ + url: new URL('/app/', selectedRpc).href, + }); } return registeredFrontends;