[CourseStats] Fix links to courseStats to default combineSubstitutions=true

This commit is contained in:
Aaro Koivukangas
2026-07-23 10:07:37 +03:00
parent 1c9e481dcc
commit 7ea227078a
3 changed files with 9 additions and 3 deletions
@@ -100,7 +100,9 @@ export const GradeDistribution = ({
<Stack flexDirection="row" sx={{ m: 'auto', mr: '0' }}>
<CourseFilterToggle courseCode={code} courseName={name} />
{!onlyIamRights ? (
<Link to={`/coursestatistics?courseCodes=["${encodeURIComponent(code)}"]&separate=false`}>
<Link
to={`/coursestatistics?courseCodes=["${encodeURIComponent(code)}"]&separate=false&combineSubstitutions=true`}
>
<NorthEastIcon sx={{ ml: 1 }} />
</Link>
) : null}
@@ -102,7 +102,9 @@ export const PassFailEnrollments = ({
<Stack flexDirection="row" sx={{ m: 'auto', mr: '0' }}>
<CourseFilterToggle courseCode={code} courseName={name ?? ''} />
{!onlyIamRights ? (
<Link to={`/coursestatistics?courseCodes=["${encodeURIComponent(code)}"]&separate=false`}>
<Link
to={`/coursestatistics?courseCodes=["${encodeURIComponent(code)}"]&separate=false&combineSubstitutions=true`}
>
<NorthEastIcon sx={{ ml: 1 }} />
</Link>
) : null}
@@ -111,7 +111,9 @@ export const PassingSemesters = ({ onlyIamRights, courseStatistics, courseTableM
<Stack flexDirection="row" sx={{ m: 'auto', mr: '0' }}>
<CourseFilterToggle courseCode={code} courseName={name} />
{!onlyIamRights ? (
<Link to={`/coursestatistics?courseCodes=["${encodeURIComponent(code)}"]&separate=false`}>
<Link
to={`/coursestatistics?courseCodes=["${encodeURIComponent(code)}"]&separate=false&combineSubstitutions=true`}
>
<NorthEastIcon sx={{ ml: 1 }} />
</Link>
) : null}