build: 2026-06-22
This commit is contained in:
36
build/ch20-03-graceful-shutdown-and-cleanup.html
Normal file
36
build/ch20-03-graceful-shutdown-and-cleanup.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Redirecting...</title>
|
||||
<meta http-equiv="refresh" content="0; URL=ch21-03-graceful-shutdown-and-cleanup.html">
|
||||
<link rel="canonical" href="ch21-03-graceful-shutdown-and-cleanup.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to... <a href="ch21-03-graceful-shutdown-and-cleanup.html">ch21-03-graceful-shutdown-and-cleanup.html</a>.</p>
|
||||
|
||||
<script>
|
||||
// This handles redirects that involve fragments.
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const fragmentMap =
|
||||
{}
|
||||
;
|
||||
const fragment = window.location.hash;
|
||||
if (fragment) {
|
||||
let redirectUrl = "ch21-03-graceful-shutdown-and-cleanup.html";
|
||||
const target = fragmentMap[fragment];
|
||||
if (target) {
|
||||
let url = new URL(target, window.location.href);
|
||||
redirectUrl = url.href;
|
||||
} else {
|
||||
let url = new URL(redirectUrl, window.location.href);
|
||||
url.hash = window.location.hash;
|
||||
redirectUrl = url.href;
|
||||
}
|
||||
window.location.replace(redirectUrl);
|
||||
}
|
||||
// else redirect handled by http-equiv
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user