fix: /admin redirect loses port behind tunnel/proxy (absolute_redirect off, trailing slash in footer link)

This commit is contained in:
2026-07-28 19:24:34 +02:00
parent 99f5601456
commit c0d06f4a17
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -8,6 +8,10 @@ server {
root /srv/releases/current; root /srv/releases/current;
charset utf-8; charset utf-8;
error_page 404 /404.html; # Astro emits 404.html at the site root error_page 404 /404.html; # Astro emits 404.html at the site root
# Directory redirects (/admin -> /admin/) must stay relative: an absolute
# redirect is built from listen port 80 and loses the real port whenever the
# site is reached through a tunnel or a proxy on a non-default port.
absolute_redirect off;
# Fingerprinted build assets (/_astro/<name>.<hash>.*) — immutable # Fingerprinted build assets (/_astro/<name>.<hash>.*) — immutable
location /_astro/ { location /_astro/ {
+1 -1
View File
@@ -169,7 +169,7 @@ const links = [
<a>Site settings</a> <a>Site settings</a>
{/* Internal tooling stays out of the main nav (NN/g: navigation reflects {/* Internal tooling stays out of the main nav (NN/g: navigation reflects
user tasks); the editor is a discreet utility link for the demo. */} user tasks); the editor is a discreet utility link for the demo. */}
<a href="/admin">Content editor</a> <a href="/admin/">Content editor</a>
</nav> </nav>
<div class="foot-note"> <div class="foot-note">
{/* The real brand flash — path taken from the official logo SVG (BRAND D.4). {/* The real brand flash — path taken from the official logo SVG (BRAND D.4).