From a154f1520adb6f9efd29f96bca96aca608973198 Mon Sep 17 00:00:00 2001
From: danieldeng2 <danieldeng223@gmail.com>
Date: Thu, 13 Aug 2020 18:08:05 +0100
Subject: [PATCH] Change links in exam left bar

---
 .../src/components/organisms/LeftBarExams/index.tsx  | 12 ++++++------
 frontend/src/components/pages/StandardView/index.tsx |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/frontend/src/components/organisms/LeftBarExams/index.tsx b/frontend/src/components/organisms/LeftBarExams/index.tsx
index efef707f1..ef5e67970 100644
--- a/frontend/src/components/organisms/LeftBarExams/index.tsx
+++ b/frontend/src/components/organisms/LeftBarExams/index.tsx
@@ -9,32 +9,32 @@ const LeftBarExams: React.FC = () => {
     {
       title: "Overview",
       icon: faList,
-      activeURL: `/exams/`,
+      activeURL: `/exams`,
     },
     {
       title: "Past Papers",
       icon: faArchive,
-      activeURL: `/exams/past-papers/`,
+      activeURL: `/exams/papers`,
     },
     {
       title: "Submissions",
       icon: faUpload,
-      activeURL: `/exams/past-papers/`,
+      activeURL: `/exams/submissions`,
     },
     {
       title: "Exam Timetable",
       icon: faCalendarAlt,
-      activeURL: `/exams/past-papers/`,
+      activeURL: `/exams/timetable`,
     },
     {
       title: "Regulations",
       icon: faGavel,
-      activeURL: `/exams/regulations/`,
+      activeURL: `/exams/regulations`,
     },
     {
       title: "Grading",
       icon: faFont,
-      activeURL: `/exams/grading/`,
+      activeURL: `/exams/grading`,
     },
     {
       title: "Rubrics",
diff --git a/frontend/src/components/pages/StandardView/index.tsx b/frontend/src/components/pages/StandardView/index.tsx
index e48ab0e8a..7ebeac2a0 100644
--- a/frontend/src/components/pages/StandardView/index.tsx
+++ b/frontend/src/components/pages/StandardView/index.tsx
@@ -51,7 +51,7 @@ const StandardView: React.FC<StandardViewProps> = ({
           <LeftBarModuleList modulesFilter={modulesFilter} setModulesFilter={setModulesFilter}/>
         </Route>
 
-        <Route exact path="/exams">
+        <Route path="/exams">
           <LeftBarExams />
         </Route>
 
-- 
GitLab