fix exam url

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-08-29 11:55:10 +03:00
parent 5911cdf8a8
commit efc359ce7e
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,8 @@ module.exports = {
}, },
navigations: { navigations: {
'journal.main': '/journal.pl', 'journal.main': '/journal.pl',
'exam.main': '/exam',
'link.exam.details': '/details/:courseId/:examId'
}, },
features: { features: {
journal: { journal: {

View File

@ -34,7 +34,7 @@ export const CourseDetails = ({ populatedCourse }: CourseDetailsProps) => {
leftIcon={<LinkIcon />} leftIcon={<LinkIcon />}
as={'a'} as={'a'}
colorScheme="blue" colorScheme="blue"
href={`/exam/${populatedCourse.id}/${exam.id}`} href={getNavigationsValue('exam.main') + getNavigationsValue('link.exam.details').replace('courseId', populatedCourse.id).replace('examId', exam.id)}
> >
Открыть Открыть
</Button> </Button>