mirror of https://github.com/quatalog/site.git
Add coursedisplay.html for redirect for smooth transition
This commit is contained in:
parent
ab1c67d11d
commit
aa11def877
|
@ -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 New Issue