template/redirect.html
2024-03-03 13:34:31 +01:00

15 lines
394 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<script>
pattern = /^https?:\/\/[\w-\.]+\.github\.io\/[\w-\.]+\/?$/
if (pattern.test(window.location.href)) {
window.location.href = window.location.href + "book/";
}
</script>
</body>
</html>