diff --git a/pages/login.tsx b/pages/login.tsx index 2203a1f..7a766e2 100644 --- a/pages/login.tsx +++ b/pages/login.tsx @@ -121,7 +121,7 @@ const Login: NextPage = () => { return } if (MiscInfo.isManaged) { - router.push("/welcome") + router.push("/cognition") } else { router.push("/refinery/projects") } diff --git a/pages/settings.tsx b/pages/settings.tsx index 67e7770..927c315 100644 --- a/pages/settings.tsx +++ b/pages/settings.tsx @@ -194,7 +194,7 @@ const Settings: NextPage = () => { ) : (<> )}
- Back + Back
diff --git a/pkg/errors.tsx b/pkg/errors.tsx index beedd59..5942d66 100644 --- a/pkg/errors.tsx +++ b/pkg/errors.tsx @@ -17,7 +17,7 @@ export function handleGetFlowError( return case "session_already_available": // User is already signed in, let's redirect them home! - await router.push("/welcome") + await router.push("/cognition") return case "session_refresh_required": // We need to re-authenticate to perform this action @@ -27,13 +27,13 @@ export function handleGetFlowError( // The flow expired, let's request a new one. toast.error("The return_to address is not allowed.") resetFlow(undefined) - await router.push("/welcome" + flowType) + await router.push("/cognition" + flowType) return case "self_service_flow_expired": // The flow expired, let's request a new one. toast.error("Your interaction expired, please fill out the form again.") resetFlow(undefined) - await router.push("/welcome" + flowType) + await router.push("/cognition" + flowType) return case "security_csrf_violation": // A CSRF violation occurred. Best to just refresh the flow! @@ -46,7 +46,7 @@ export function handleGetFlowError( case "security_identity_mismatch": // The requested item was intended for someone else. Let's request a new flow... resetFlow(undefined) - await router.push("/welcome" + flowType) + await router.push("/cognition" + flowType) return case "browser_location_change_required": // Ory Kratos asked us to point the user to this URL. @@ -58,7 +58,7 @@ export function handleGetFlowError( case 410: // The flow expired, let's request a new one. resetFlow(undefined) - await router.push("/welcome" + flowType) + await router.push("/cognition" + flowType) return } diff --git a/submodules/javascript-functions b/submodules/javascript-functions index 8337304..a247950 160000 --- a/submodules/javascript-functions +++ b/submodules/javascript-functions @@ -1 +1 @@ -Subproject commit 833730471c2ddc9c56db578a2ab24bcc2865641b +Subproject commit a2479502cb59b9ed1f6fd5f5ce6fc084f22d270d diff --git a/submodules/react-components b/submodules/react-components index 4c702e0..42f1af8 160000 --- a/submodules/react-components +++ b/submodules/react-components @@ -1 +1 @@ -Subproject commit 4c702e0f7bdd6d0a03af68f5fe4bf961eb50b7b4 +Subproject commit 42f1af8d2534bd1c82094fce4cc70d193344cfb8