mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
fix(web): preserve Slack override login redirect
This commit is contained in:
parent
74dc227f30
commit
cf13314568
1 changed files with 4 additions and 3 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue