Skip to content

Commit

Permalink
[FLINK-15993] Move 404 "refresh" redirect into noscript block, add ti…
Browse files Browse the repository at this point in the history
…meout

Apparently, search engines penalize META refresh links and this gets
around it
  • Loading branch information
aljoscha committed Feb 13, 2020
1 parent fcb443a commit 3c7eeed
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/_layouts/404_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https:{{ site.stable_baseurl }}">
<noscript>
<meta http-equiv="refresh" content="5; url=https:{{ site.stable_baseurl }}">
</noscript>
<script type="text/javascript">
window.location.href = "https:{{ site.stable_baseurl }}"
var documentationRootUrl = "https:{{ site.stable_baseurl }}";
var timeout = "5000";
window.onload = function() {
setTimeout(doRedirect, timeout);
}
function doRedirect() {
window.location.href = documentationRootUrl;
}
</script>
<title>404</title>
</head>
Expand Down

0 comments on commit 3c7eeed

Please sign in to comment.