You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2026. It is now read-only.
It works locally because mkdocs serve returns a server-side redirect to add the trailing slash:
% http :8000/docs/concepts/manifest
HTTP/1.0 302 Found
Content-Length: 0
Date: Wed, 13 Aug 2025 11:54:21 GMT
Location: /docs/concepts/manifest/
Server: WSGIServer/0.2 CPython/3.11.9
It doesn't work in production because concepts/manifest/index.html is served up from the context of concepts/ which results in a client-side redirect to concepts/../environments/:
% https flox.dev/docs/concepts/manifest
HTTP/1.1 200 OK
…
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Redirecting...</title>
<link rel="canonical" href="../environments/#manifesttoml">
<script>var anchor=window.location.hash.substr(1);location.href="../environments/#manifesttoml"+(anchor?"#"+anchor:"")</script>
<meta http-equiv="refresh" content="0; url=../environments/#manifesttoml">
</head>
<body>
You're being redirected to a <a href="../environments/#manifesttoml">new destination</a>.
</body>
</html>
In production the trailing slash is added client-side after the page first loads:
<script>
(function() {
let url = new URL(window.location.href);
if (url.pathname.slice(-5) !== ".html" && url.pathname.slice(-1) !== "/") {
window.location.replace(window.location.href + "/");
}
}())
</script>
https://flox.dev/docs/concepts/manifest (no trailing slash, as it appear in the
manifest.tomltemplate) incorrectly redirects to https://flox.dev/docs/environments/#manifesttomlIt works locally because
mkdocs servereturns a server-side redirect to add the trailing slash:It doesn't work in production because
concepts/manifest/index.htmlis served up from the context ofconcepts/which results in a client-side redirect toconcepts/../environments/:In production the trailing slash is added client-side after the page first loads: