fix: redirect after quiz submission
This commit is contained in:
@@ -136,9 +136,9 @@ const try_quiz_again = (e) => {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (window.location.href.includes("new-submission")) {
|
if (window.location.href.includes("new-submission")) {
|
||||||
const target = $(e.currentTarget);
|
const target = $(e.currentTarget);
|
||||||
window.location.href = `/quiz-submission/${target.data(
|
window.location.href = `/quiz-submission/
|
||||||
"quiz"
|
${target.data("quiz")}/
|
||||||
)}/${target.data("submission")}`;
|
${target.data("submission")}`;
|
||||||
} else {
|
} else {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user