|
|
@ -97,7 +97,7 @@ export function LinkedInButton(props: LinkedInButtonProps) { |
|
|
|
// For non authentication pages, we want to redirect back to the page
|
|
|
|
// For non authentication pages, we want to redirect back to the page
|
|
|
|
// the user was on before they clicked the social login button
|
|
|
|
// the user was on before they clicked the social login button
|
|
|
|
if (!['/login', '/signup'].includes(window.location.pathname)) { |
|
|
|
if (!['/login', '/signup'].includes(window.location.pathname)) { |
|
|
|
const pagePath = ['/respond-invite', '/befriend'].includes( |
|
|
|
const pagePath = ['/respond-invite', '/befriend', '/r', '/ai'].includes( |
|
|
|
window.location.pathname, |
|
|
|
window.location.pathname, |
|
|
|
) |
|
|
|
) |
|
|
|
? window.location.pathname + window.location.search |
|
|
|
? window.location.pathname + window.location.search |
|
|
|