-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathredirect.html
More file actions
18 lines (18 loc) · 802 Bytes
/
redirect.html
File metadata and controls
18 lines (18 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./microprofile-tutorial/latest/index.html'" />
<script>
// In case the relative URL doesn't work, try to build a URL based on the current location
window.onload = function() {
var baseUrl = window.location.protocol + "//" + window.location.host;
var redirectPath = "/microprofile-tutorial/latest/index.html";
document.getElementById("redirect-link").href = baseUrl + redirectPath;
document.getElementById("redirect-link").textContent = "MicroProfile Tutorial at " + baseUrl;
}
</script>
</head>
<body>
<p>Redirecting to <a id="redirect-link" href="./microprofile-tutorial/latest/index.html">MicroProfile Tutorial</a>...</p>
</body>
</html>