Skip to content

Commit

Permalink
Fixing up issues with url redirecting
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayden Smith authored and Hayden Smith committed Feb 27, 2024
1 parent 6fe7a82 commit 18d6613
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions frontend/src/page/Assessments/AssessmentsAssignments.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ const AssessmentsAssignments = ({ }) => {
{
title: 'Ass1',
icon: <TheatersIcon />,
subRoute: 'pictocode',
subRoute: 'ass1',
},
{
title: 'Ass2',
icon: <SchoolIcon />,
subRoute: 'funform',
subRoute: 'ass2',
},
{
title: 'Ass3',
icon: <FavoriteIcon />,
subRoute: 'qanda',
subRoute: 'ass3',
},
{
title: 'Ass4',
icon: <LocalHospitalIcon />,
subRoute: 'presto',
subRoute: 'ass4',
},
];

Expand Down
3 changes: 2 additions & 1 deletion frontend/src/page/Content/ContentTutorials.content.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Button from '@mui/material/Button';
import config from '../../config';

import { isHalfScreenWidth, isTinyMobileWidth, isMobileWidth, isBigDesktopWidth, isDesktopWidth } from '../../util/screen';

Expand Down Expand Up @@ -33,7 +34,7 @@ export const generateContent = (getters, by) => {
{ value: tutorial.stream.join(', '), },
{ value: tutorial.importance, },
{ Raw: () => (
<a href={`$ {config.BASE_URL}/gitlabredir/${getters.term}/exercises/${tutorial.key}`} target="_blank"><Button variant="contained" color="info">Git</Button></a>
<a href={`${config.BASE_URL}/gitlabredir/${getters.term}/exercises/${tutorial.key}`} target="_blank"><Button variant="contained" color="info">Git</Button></a>
)}
]);
});
Expand Down

0 comments on commit 18d6613

Please sign in to comment.