Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
redirect lang fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JibrilExe committed May 7, 2024
1 parent dcc3040 commit 55a62a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/components/Courses/CourseUtilComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ function EmptyOrNotProjects({
projects: ProjectDetail[];
noProjectsText: string;
}): JSX.Element {
const { i18n } = useTranslation();
const lang = i18n.language;
if (projects === undefined || projects.length === 0) {
return (
<Typography
Expand Down Expand Up @@ -346,8 +348,8 @@ function EmptyOrNotProjects({
}
return (
<Grid item key={project.project_id}>
<Link
to={`/projects/${getIdFromLink(project.project_id)}`}
<Link
to={`/${lang}/projects/${getIdFromLink(project.project_id)}`}
style={{ textDecoration: "none", color: "inherit" }}
>
<EpsilonTypography
Expand Down

0 comments on commit 55a62a3

Please sign in to comment.