default.aspx: turns out this file is more important than I realized

This commit is contained in:
Peter Williams 2020-03-29 18:50:29 -04:00
Родитель f83a5d10f2
Коммит a476e3e33b
1 изменённых файлов: 14 добавлений и 6 удалений

Просмотреть файл

@ -1,16 +1,24 @@
<!DOCTYPE html>
<!-- -*- html -*- -->
<!-- Some very ancient stuff expected worldwidetelescope.org/webclient/default.aspx
to exist, so provide it just in case. -->
<html>
<!-- Some of our APIs redirect to
worldwidetelescope.org/webclient/default.aspx, passing query string
parameters. Until we can update the API calls, we need to redirect from
default.aspx to `./`, honoring the query strings. Unfortunately we
use a static file server to serve everything within the /webclient/ tree
and I can't find a way to achieve a server-side redirect for just that
one URL path. So we have to do it in JavaScript.
Note also that when we publish this file to our Azure Blob Storage, we
need to specially set its Content-Type so that it's treated as HTML. -->
<html lang="en">
<head>
<meta http-equiv="refresh" content="0; URL='./'" />
<meta charset="utf-8">
<title>Redirect</title>
</head>
<body>
<script>
window.location.href = "./";
window.location.href = "./" + window.location.search;
</script>
<p>Please continue <a href="./">here</a>.</p>
<p>Redirecting (assuming you have JavaScript enabled) ...</p>
</body>
</html>