mirror of
https://github.com/quatalog/site.git
synced 2024-11-16 03:43:40 +00:00
Add coursedisplay.html for redirect for smooth transition
This commit is contained in:
parent
ab1c67d11d
commit
aa11def877
18
coursedisplay.html
Normal file
18
coursedisplay.html
Normal 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>
|
Loading…
Reference in a new issue