1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-10-01 19:36:43 +02:00

Add teams support

This commit is contained in:
Kamran Ahmed
2023-07-20 19:24:34 +01:00
parent bbe8125fc1
commit 03ba0c384b
101 changed files with 5612 additions and 182 deletions

View File

@@ -90,8 +90,13 @@ export function GitHubButton(props: GitHubButtonProps) {
// For non authentication pages, we want to redirect back to the page
// the user was on before they clicked the social login button
if (!['/login', '/signup'].includes(window.location.pathname)) {
const pagePath =
window.location.pathname === '/respond-invite'
? window.location.pathname + window.location.search
: window.location.pathname;
localStorage.setItem(GITHUB_REDIRECT_AT, Date.now().toString());
localStorage.setItem(GITHUB_LAST_PAGE, window.location.pathname);
localStorage.setItem(GITHUB_LAST_PAGE, pagePath);
}
window.location.href = response.loginUrl;