diff --git a/web/ts/edit-course.ts b/web/ts/edit-course.ts index bb53157a2..039559e60 100644 --- a/web/ts/edit-course.ts +++ b/web/ts/edit-course.ts @@ -855,10 +855,10 @@ export function createLectureForm(args: { s: [] }) { postData("/api/course/" + this.courseID + "/createLecture", payload) .then(async (res) => { const { ids } = await res.json(); - /*const url = new URL(window.location.href); + const url = new URL(window.location.href); url.hash = `lectures:${ids.join(",")}`; window.location.assign(url); - window.location.reload();*/ + window.location.reload(); }) .catch((e) => { console.log(e);