Skip to content

Commit

Permalink
route bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestjx committed Oct 12, 2024
1 parent 52bd666 commit b43a378
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/(full-page)/auth/google/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const GoogleAuthPage = () => {
useEffect(() => {
if (isDenyAccess) redirect('/auth/access');
if (isLogin) {
let redirectionUrl = '/quiz';
let redirectionUrl = '/quiz/practice';

if (typeof sessionStorage !== 'undefined' && sessionStorage.getItem('redirection') !== null) {
redirectionUrl = sessionStorage.getItem('redirection') || '/quiz';
redirectionUrl = sessionStorage.getItem('redirection') || '/quiz/practice';
sessionStorage.removeItem('redirection');
}

Expand Down
2 changes: 1 addition & 1 deletion app/(full-page)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const LandingPage = () => {
<span className="font-light block">MTECH SE 31</span>Quemistry
</h1>
<p className="font-normal text-2xl line-height-3 md:mt-3 text-gray-700">Platform manages multiple choice questions to test and improve your knowlege in chemistry ... </p>
<Link href="/quiz">
<Link href="/quiz/practice">
<Button type="button" label="Get Started" rounded className="text-xl border-none mt-3 bg-blue-500 font-normal line-height-3 px-3 text-white"></Button>
</Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/(main)/students/invitation/accept/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const InvitationPage = () => {
const storeInvitationResponse = useCallback(
(result: boolean) => {
sessionStorage.setItem('invitation_result', String(result));
router.push('/quiz');
router.push('/quiz/practice');
},
[router]
);
Expand Down

0 comments on commit b43a378

Please sign in to comment.