forked from aws-powertools/powertools-lambda-python
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
Latest commit
20 lines (17 loc) · 707 Bytes
/
Copy path404.html
File metadata and controls
20 lines (17 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<htmllang="en">
<head>
<metacharset="UTF-8">
<metahttp-equiv="X-UA-Compatible" content="IE=edge">
<metaname="viewport" content="width=device-width, initial-scale=1.0">
<script>
constwebsitePath=window.location.pathname;
constversionRegex=/(\w.+)\/(latest|([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?)/;
if(websitePath.search(versionRegex)===-1){
letprojectName="powertools-lambda-python"
// redirect old links to latest version alias
window.location=websitePath.replace(projectName,`${projectName}/latest`)
}
</script>
</head>
</html>