diff --git a/auth-proxy/public/wallet.js b/auth-proxy/public/wallet.js index c516d66..48dc06d 100644 --- a/auth-proxy/public/wallet.js +++ b/auth-proxy/public/wallet.js @@ -211,6 +211,14 @@ function renderTabs() { } }); }); + + // Auto-open a specific option when the URL fragment is one of #create / #import / #connect + // (e.g. links from the hephaestus.x landing dropdown). Fragments survive OAuth redirects. + const hash = (location.hash || "").replace(/^#/, "").toLowerCase(); + if (hash === "create" || hash === "import" || hash === "connect") { + const target = app.querySelector(`details.wallet-opt[data-choice="${hash}"]`); + if (target) target.open = true; + } } function populateFlow(kind, flow) {