fix: URL in iframe for programming exercises

This commit is contained in:
Jannat Patel
2025-09-17 15:58:02 +05:30
parent 69f54a00c5
commit 733254e2c0
2 changed files with 2 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ export class Program {
fieldname: ['name'],
}).then((data: { name: string }) => {
let submission = data.name || 'new'
this.wrapper.innerHTML = `<iframe src="/lms/exercises/${exercise}/submission/${submission}?fromLesson=1" class="w-full h-[900px] border rounded-md"></iframe>`
this.wrapper.innerHTML = `<iframe src="/lms/programming-exercises/${exercise}/submission/${submission}?fromLesson=1" class="w-full h-[900px] border rounded-md"></iframe>`
})
return
}