Add coursedisplay.html for redirect for smooth transition

This commit is contained in:
3eef8a28f26fb2bcc514e6f1938929a1f931762 2023-02-16 20:42:21 -05:00
parent ab1c67d11d
commit aa11def877
1 changed files with 18 additions and 0 deletions

18
coursedisplay.html Normal file
View File

@ -0,0 +1,18 @@
<html>
<head>
<script>
const params = window
.location
.search
.slice(1)
.split("&")
.map(p => p.split("="))
.reduce((obj,[key,value]) =>
({ ...obj, [key]: decodeURIComponent(value) }),
{}
);
window.location.replace("courses/"+(params["course"]));
</script>
</head>
</html>