From babef5f032f51b041d221351e75681b47f902799 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 15 Jan 2026 20:00:24 +0100 Subject: [PATCH] Reload page after sign up --- web/pages/[username]/index.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/pages/[username]/index.tsx b/web/pages/[username]/index.tsx index a8000d6f..a716f96c 100644 --- a/web/pages/[username]/index.tsx +++ b/web/pages/[username]/index.tsx @@ -248,6 +248,7 @@ function UserPageInner(props: ActiveUserPageProps) { const router = useRouter() const {query} = router const fromSignup = query.fromSignup === 'true' + const reloaded = query.reloaded === 'true' const currentUser = useUser() const isCurrentUser = currentUser?.id === user?.id @@ -263,6 +264,15 @@ function UserPageInner(props: ActiveUserPageProps) { const profile = clientProfile ?? staticProfile // console.debug('profile:', user?.username, profile, clientProfile, staticProfile) + if (fromSignup && !reloaded) { + console.log('Reloading page after signup') + router.replace({ + pathname: router.pathname, + query: {...query, reloaded: 'true'}, + }) + window.location.reload() + } + if (!isCurrentUser && profile?.disabled) { return