-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy path404.html
More file actions
26 lines (24 loc) · 721 Bytes
/
Copy path404.html
File metadata and controls
26 lines (24 loc) · 721 Bytes
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redirecting...</title>
</head>
<body>
<script>
(function () {
var repoBase = '/bestJavaer/';
var path = window.location.pathname;
var base = path.indexOf(repoBase) === 0 ? repoBase : '/';
var route = path.slice(base.length).replace(/\/$/, '');
var query = window.location.search || '';
var hash = window.location.hash || '';
if (route.slice(-3).toLowerCase() === '.md') {
route = route.slice(0, -3);
}
window.location.replace(base + '#/' + route + query + hash);
}());
</script>
</body>
</html>