fix exam url
This commit is contained in:
parent
5911cdf8a8
commit
efc359ce7e
@ -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: {
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user