Skip to content

Commit

Permalink
fix routing...
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwajeetraj11 committed Mar 6, 2022
1 parent acbaf7f commit 07919be
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions src/Components/Navigation/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,30 +143,30 @@ export default withRouter((props) => {

const ScrollLinks = [
{
to: "/mentors",
to: "/2020/mentors",
text: "Mentors",
},
{
to: "/organisers",
to: "/2020/organisers",
text: "Organisers",
},
{
to: "#js-organisations",
text: "Organisations",
},
{
to: "/2020-student-reports",
to: "/2020/student-reports",
text: "Student Reports",
},
];

const Links = [
{
to: "/",
to: "/2020",
text: "Home",
},
{
to: "/2020-student-reports",
to: "/2020/student-reports",
text: "Student Reports",
},
];
30 changes: 15 additions & 15 deletions src/Components/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ const AppRouter = () => (
<ScrollToTop />
<Switch>
<Route exact={true} path="/" component={HomePage} />
<Route path="/mentors" component={MentorsPage} />
<Route path="/organisers" component={Organisers} />
<Route path="/organisation/deep-fusion-ai" component={DeepFusionAI} />
<Route path="/organisation/absurd-nerd" component={AbsurdNerd} />
<Route path="/organisation/edualgo" component={EduAlgo} />
<Route path="/organisation/canvasbird" component={CanvasBird} />
<Route path="/organisation/dsc-nit-rourkela" component={DSCNITRourkela} />
<Route path="/organisation/dsc-iem" component={DSCIEM} />
<Route path="/organisation/fireshort" component={FireShort} />
<Route path="/organisation/dynopii" component={Dynopii} />
<Route path="/organisation/dsc-x" component={DscX} />
<Route path="/organisation/dsc-nsec" component={DSCNSEC} />
<Route path="/organisation/tesseract-coding" component={TesseractCoding} />
<Route path="/2020-student-reports/:name" component={StudentReport} />
<Route path="/2020-student-reports" component={StudentReportsPage} />
<Route path="/2020/mentors" component={MentorsPage} />
<Route path="/2020/organisers" component={Organisers} />
<Route path="/2020/organisation/deep-fusion-ai" component={DeepFusionAI} />
<Route path="/2020/organisation/absurd-nerd" component={AbsurdNerd} />
<Route path="/2020/organisation/edualgo" component={EduAlgo} />
<Route path="/2020/organisation/canvasbird" component={CanvasBird} />
<Route path="/2020/organisation/dsc-nit-rourkela" component={DSCNITRourkela} />
<Route path="/2020/organisation/dsc-iem" component={DSCIEM} />
<Route path="/2020/organisation/fireshort" component={FireShort} />
<Route path="/2020/organisation/dynopii" component={Dynopii} />
<Route path="/2020/organisation/dsc-x" component={DscX} />
<Route path="/2020/organisation/dsc-nsec" component={DSCNSEC} />
<Route path="/2020/organisation/tesseract-coding" component={TesseractCoding} />
<Route path="/2020/student-reports/:name" component={StudentReport} />
<Route path="/2020/student-reports" component={StudentReportsPage} />
<Redirect from="*" to="/" />
</Switch>
<Footer />
Expand Down
2 changes: 1 addition & 1 deletion src/Routes/StudentReportsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const StudentReportsPage = () => {
let studentUrl=student.gsx$name.$t.split(" ").map((e) => e.replace(e[0], e[0].toLowerCase())).join("-")

return (
<Link to={`/2020-student-reports/${studentUrl}`} className="link-student-record" key={student.id.$t.split('/')[9]}>
<Link to={`/2020/student-reports/${studentUrl}`} className="link-student-record" key={student.id.$t.split('/')[9]}>
<div className="report">
<p className="report-entity student-name">{student.gsx$name.$t}</p>
<p className="report-entity student-org">{student.gsx$org.$t}</p>
Expand Down

1 comment on commit 07919be

@vercel
Copy link

@vercel vercel bot commented on 07919be Mar 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

The most recent charge for your active payment method has failed. Please update it here: https://vercel.com/teams/dsc-nsec/settings/billing.

Please sign in to comment.