mirror of
https://github.com/quatalog/site.git
synced 2024-11-16 03:43:40 +00:00
Account for if courses param is empty
This commit is contained in:
parent
aa11def877
commit
96202b041e
|
@ -11,8 +11,12 @@ const params = window
|
|||
({ ...obj, [key]: decodeURIComponent(value) }),
|
||||
{}
|
||||
);
|
||||
|
||||
window.location.replace("courses/"+(params["course"]));
|
||||
const course = params["course"];
|
||||
if(course != undefined) {
|
||||
window.location.replace("courses/"+(params["course"]));
|
||||
} else {
|
||||
window.location.replace(".");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue