-
-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy path404.html
More file actions
19 lines (19 loc) · 542 Bytes
/
404.html
File metadata and controls
19 lines (19 loc) · 542 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<head>
<title>天猪部落阁</title>
<script>
var pathList = location.pathname.replace(/^\//, '').split('/');
var labels = null;
var id = null;
if(pathList.length >= 1){
if(/\d+/.test(pathList[pathList.length-1])){
id = pathList.pop();
}
labels = pathList.join(',');
}
var base = 'https://github.com/atian25/blog';
var url = base + (id ? '/issues/' + id : (labels ? '?labels=' + labels : '') );
//console.log(url);
location.replace(url);
</script>
</head>