-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path404.html
39 lines (34 loc) · 1.2 KB
/
404.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
layout: default
title: "404: Page not found"
permalink: /404.html
---
<div class="page">
<h1 class="page-title">404: Page not found</h1>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="/">Head back home</a> to try finding it again.</p>
</div>
<script>
(function () {
window.onload = function () {
var $current_path = window.location.pathname;
if ($current_path.match(/^\/api\/(.*?)\/aik099\/(.*)/)) {
redirect_to('{{ site.url }}/api/' + RegExp.$1 + '/QATools/' + RegExp.$2);
}
else if ($current_path.match(/^\/api\/(01-PageObject|02-HtmlElements|03-BEM)\//)) {
redirect_to('{{ site.url }}/docs/' + RegExp.$1 + '/');
}
};
function redirect_to($url) {
var $html =
'<!DOCTYPE html>\
<meta charset=utf-8>\
<title>Redirecting...</title>\
<link rel=canonical href="{URL}">\
<meta http-equiv=refresh content="0; url={URL}">\
<h1>Redirecting...</h1>\
<a href="{URL}">Click here if you are not redirected.</a>\
<script>location=\'{URL}\'<' + '/script>';
document.write($html.replace(/\{URL}/g, $url));
}
}());
</script>