diff --git a/coursedisplay.html b/coursedisplay.html
index 5a7331e04..971ed33db 100644
--- a/coursedisplay.html
+++ b/coursedisplay.html
@@ -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(".");
+}