-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix incorrect loading of admin ui settings page #2805
Conversation
✅ Deploy Preview for brilliant-pasca-3e80ec canceled.
|
@@ -39,7 +43,7 @@ export const loader = async ({ request }: LoaderFunctionArgs) => { | |||
|
|||
return { responseData } | |||
} else { | |||
return redirect( | |||
return redirectDocument( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the only place this is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only found issue with the settings page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mkurapov is actually a very good question. It made me realise that we need to make improvements on catching direct references to the login page and account recovery page as well! Both were already redirecting to the kratos endpoint when the login
/ Forgot password?
buttons were clicked but weren't handling direct navigation optimally and should also be using redirectDocument
if they are navigated to directly instead of just throwing an error.
I'm going to include an additional commit now that covers this as well.
Changes proposed in this pull request
redirect
withredirectDocument
.We are using a nightly build to test if this resolves issues in possible production deployments.
Context
Checklist
fixes #number