fix(web): preserve Slack override login redirect

This commit is contained in:
MaheshtheDev 2026-07-24 07:03:12 +00:00
parent 74dc227f30
commit cf13314568

View file

@ -523,9 +523,10 @@ export function SlackWorkspaceOverride() {
const shouldInspect = screen.kind === "loading" || screen.kind === "checking"
const indeterminateAction =
screen.kind === "checking" ? screen.indeterminateAction : false
const loginHref = `/login?redirect=${encodeURIComponent(
`/slack/workspace-override${requestId ? `?request=${encodeURIComponent(requestId)}` : ""}`,
)}`
const loginHref =
typeof window === "undefined"
? "/login"
: `/login?redirect=${encodeURIComponent(window.location.href)}`
const checkStatus = useCallback(
(afterIndeterminateAction: boolean) => {