Support new redirect params

This commit is contained in:
Matej Bačo committed 2023-08-05 20:53:16 +02:00
1 parent 7ef7cd3b30
commit 54c42e08cb
4 files changed
+8 -4

No files matched your search

@@ -49,7 +49,8 @@
redirect.searchParams.append('github-installed', 'true');
const target = new URL(`${sdk.forProject.client.config.endpoint}/v1/vcs/github/authorize`);
target.searchParams.set('projectId', $page.params.project);
target.searchParams.set('redirect', redirect.toString());
target.searchParams.set('success', redirect.toString());
target.searchParams.set('failure', redirect.toString());
return target;
}
</script>
@@ -38,7 +38,8 @@
redirect.searchParams.append('github-installed', 'true');
const target = new URL(`${sdk.forProject.client.config.endpoint}/v1/vcs/github/authorize`);
target.searchParams.set('projectId', $page.params.project);
target.searchParams.set('redirect', redirect.toString());
target.searchParams.set('success', redirect.toString());
target.searchParams.set('failure', redirect.toString());
return target;
}
@@ -12,7 +12,8 @@
redirect.searchParams.append('alert', 'installation-created');
const target = new URL(`${sdk.forProject.client.config.endpoint}/v1/vcs/github/authorize`);
target.searchParams.set('projectId', $page.params.project);
target.searchParams.set('redirect', redirect.toString());
target.searchParams.set('success', redirect.toString());
target.searchParams.set('failure', redirect.toString());
goto(target);
}
</script>
@@ -63,7 +63,8 @@
redirect.searchParams.append('alert', 'installation-updated');
const target = new URL(`${sdk.forProject.client.config.endpoint}/v1/vcs/github/authorize`);
target.searchParams.set('projectId', $page.params.project);
target.searchParams.set('redirect', redirect.toString());
target.searchParams.set('success', redirect.toString());
target.searchParams.set('failure', redirect.toString());
goto(target);
}