From cd5921527a67dcc4b5eaa60f0c137c5e2aae96b4 Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 5 Feb 2026 23:06:40 +0700 Subject: [PATCH 1/3] Hotfix on booster video link --- src/app/components/elements/PageTitle.tsx | 4 ++-- src/app/components/navigation/IsaacApp.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/components/elements/PageTitle.tsx b/src/app/components/elements/PageTitle.tsx index b042338f0c..c739d9a6ab 100644 --- a/src/app/components/elements/PageTitle.tsx +++ b/src/app/components/elements/PageTitle.tsx @@ -84,8 +84,8 @@ export const PageTitle = ({ const renderHelpOrBoosterButton = () => { if (boosterVideoButton) { const targetPath = user?.loggedIn - ? "/pages/booster_video_binary_conversion_and_addition" - : "/login?target=/pages/booster_video_binary_conversion_and_addition"; + ? "/booster_video_binary_conversion_and_addition" + : "/login?target=/booster_video_binary_conversion_and_addition"; return ( ); diff --git a/src/app/components/navigation/IsaacApp.tsx b/src/app/components/navigation/IsaacApp.tsx index 8b86d20147..4412e08597 100644 --- a/src/app/components/navigation/IsaacApp.tsx +++ b/src/app/components/navigation/IsaacApp.tsx @@ -179,13 +179,7 @@ export const IsaacApp = () => { {/* historic route which might get reintroduced with the introduction of dashboards */} - + - {(user && ifUser(user)) || isBot(userAgent) ? ( - - ) : user && !user.loggedIn && !isTutorOrAbove(user) && userNeedsToBeTutorOrTeacher ? ( - persistence.save(KEY.AFTER_AUTH_PATH, props.location.pathname + props.location.search) && ( - - ) - ) : user && !isTutorOrAbove(user) && userNeedsToBeTutorOrTeacher ? ( - - ) : user && user.loggedIn && !ifUser(user) ? ( - - ) : ( - persistence.save( - KEY.AFTER_AUTH_PATH, - props.location.pathname + props.location.search + props.location.hash, - ) && - )} - + { + if (ifUser(user) || isBot(userAgent)) { + return ( + + ); + } else if (!user.loggedIn && !isTutorOrAbove(user) && userNeedsToBeTutorOrTeacher) { + persistence.save(KEY.AFTER_AUTH_PATH, props.location.pathname + props.location.search); + return ; + } else if (!isTutorOrAbove(user) && userNeedsToBeTutorOrTeacher) { + return ; + } else if (user.loggedIn && !ifUser(user)) { + return ; + } else { + persistence.save( + KEY.AFTER_AUTH_PATH, + props.location.pathname + props.location.search + props.location.hash, + ); + return ; + } + }} + /> ); }} /> From 260c95ca10b3b9cd45bdcf2ef721a12a0688e79d Mon Sep 17 00:00:00 2001 From: Marius Date: Fri, 6 Feb 2026 09:00:14 +0700 Subject: [PATCH 3/3] test --- src/app/components/navigation/IsaacApp.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/components/navigation/IsaacApp.tsx b/src/app/components/navigation/IsaacApp.tsx index 4412e08597..6f7f6705e9 100644 --- a/src/app/components/navigation/IsaacApp.tsx +++ b/src/app/components/navigation/IsaacApp.tsx @@ -180,6 +180,11 @@ export const IsaacApp = () => { +