0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(ui): fix continue flow verification-code 404 bug

fix continue flow verification-code 404 bug
This commit is contained in:
simeng-li 2023-02-15 17:02:42 +08:00
parent de0d22037d
commit 647bd884a7
No known key found for this signature in database
GPG key ID: 14EA7BB1541E8075
2 changed files with 4 additions and 4 deletions

View file

@ -95,14 +95,14 @@ const App = () => {
<Route path="reset" element={<ResetPassword />} />
</Route>
{/* Passwordless verification code */}
<Route path=":flow/verification-code" element={<VerificationCode />} />
{/* Continue set up missing profile */}
<Route path="continue">
<Route path=":method" element={<Continue />} />
</Route>
{/* Passwordless verification code */}
<Route path=":flow/verification-code" element={<VerificationCode />} />
{/* Social sign-in pages */}
<Route path="social">
<Route path="link/:connectorId" element={<SocialLinkAccount />} />

View file

@ -46,7 +46,7 @@ const useSendVerificationCode = (flow: UserFlow, replaceCurrentPage?: boolean) =
if (result) {
navigate(
{
pathname: `verification-code`,
pathname: `/${flow}/verification-code`,
search: location.search,
},
{