mirror of
https://github.com/quatalog/site.git
synced 2024-12-27 23:46:48 +00:00
Add coursedisplay.html for redirect for smooth transition
This commit is contained in:
parent
9d1e2ee858
commit
47b0ebbe1a
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