diff --git a/api/services/ogHtml.ts b/api/services/ogHtml.ts index f2713b84..0fdf52b2 100644 --- a/api/services/ogHtml.ts +++ b/api/services/ogHtml.ts @@ -60,7 +60,7 @@ ${articleTags}
diff --git a/src/App.tsx b/src/App.tsx index 604f04f6..b79598cd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -755,6 +755,16 @@ function App() { } }, [showToast]) + // Strip _spa query parameter from URL after SPA loads + useEffect(() => { + const url = new URL(window.location.href) + if (url.searchParams.has('_spa')) { + url.searchParams.delete('_spa') + const path = url.pathname + (url.search ? url.search : '') + url.hash + window.history.replaceState(null, '', path) + } + }, []) + if (!eventStore || !accountManager || !relayPool) { return (