mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feat: register redirection logic
This commit is contained in:
1 parent
4a4f2fe83a
commit
4866eca1d1
1 file changed
+5
-1
@@ -38,7 +38,11 @@
|
||||
}
|
||||
|
||||
await invalidate(Dependencies.ACCOUNT);
|
||||
|
||||
trackEvent(Submit.AccountCreate, { campaign_name: data?.couponData?.code });
|
||||
if (data?.couponData?.code) {
|
||||
await goto(`${base}/console/apply-credit?code=${data?.couponData?.code}`);
|
||||
return;
|
||||
}
|
||||
if ($page.url.searchParams) {
|
||||
const redirect = $page.url.searchParams.get('redirect');
|
||||
$page.url.searchParams.delete('redirect');
|
||||
|
||||
Reference in new issue
Block a user