0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

fix(console): should return to previous page when on sign-in-experience and app details page (#1137)

This commit is contained in:
Xiao Yijun 2022-06-17 13:48:10 +08:00 committed by GitHub
parent 294c60062e
commit ae0caa8f8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ const Main = () => {
<Route index element={<Applications />} />
<Route path="create" element={<Applications />} />
<Route path=":id">
<Route index element={<Navigate to="settings" />} />
<Route index element={<Navigate replace to="settings" />} />
<Route path="settings" element={<ApplicationDetails />} />
<Route path="advanced-settings" element={<ApplicationDetails />} />
</Route>
@ -73,7 +73,7 @@ const Main = () => {
<Route path=":userId/logs/:logId" element={<AuditLogDetails />} />
</Route>
<Route path="sign-in-experience">
<Route index element={<Navigate to="experience" />} />
<Route index element={<Navigate replace to="experience" />} />
<Route path=":tab" element={<SignInExperience />} />
</Route>
<Route path="settings" element={<Settings />} />