Skip to content

Commit

Permalink
fix: wrong path redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
ivopr committed Dec 18, 2023
1 parent 06a76e9 commit 30d17af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/ui/app/[locale]/(auth)/login/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function LoginForm() {
message: "Something went wrong. Please report to the administrators.",
});
} else {
router.push("/descriptors");
router.push("/my-molecules");
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion apps/ui/app/[locale]/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const LoginForm = dynamic(() => import("./LoginForm"), {

export default async function Page() {
const session = await getSession();
if (session) redirect("/descriptors");
if (session) redirect("/my-molecules");

return (
<PageLayout>
Expand Down
2 changes: 1 addition & 1 deletion apps/ui/app/[locale]/(auth)/register/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function RegisterForm() {
color: "green",
message: "Your account has been created.",
});
router.push("/descriptors");
router.push("/my-molecules");
}
})
.finally(() => {
Expand Down
2 changes: 1 addition & 1 deletion apps/ui/app/[locale]/(auth)/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const RegisterForm = dynamic(() => import("./RegisterForm"), {

export default async function Page() {
const session = await getSession();
if (session) redirect("/descriptors");
if (session) redirect("/my-molecules");

return (
<PageLayout>
Expand Down

0 comments on commit 30d17af

Please sign in to comment.