fix exam url
This commit is contained in:
parent
5911cdf8a8
commit
efc359ce7e
@ -9,6 +9,8 @@ module.exports = {
|
||||
},
|
||||
navigations: {
|
||||
'journal.main': '/journal.pl',
|
||||
'exam.main': '/exam',
|
||||
'link.exam.details': '/details/:courseId/:examId'
|
||||
},
|
||||
features: {
|
||||
journal: {
|
||||
|
@ -34,7 +34,7 @@ export const CourseDetails = ({ populatedCourse }: CourseDetailsProps) => {
|
||||
leftIcon={<LinkIcon />}
|
||||
as={'a'}
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user