fix: /admin redirect loses port behind tunnel/proxy (absolute_redirect off, trailing slash in footer link)
This commit is contained in:
@@ -8,6 +8,10 @@ server {
|
||||
root /srv/releases/current;
|
||||
charset utf-8;
|
||||
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
|
||||
location /_astro/ {
|
||||
|
||||
@@ -169,7 +169,7 @@ const links = [
|
||||
<a>Site settings</a>
|
||||
{/* Internal tooling stays out of the main nav (NN/g: navigation reflects
|
||||
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>
|
||||
<div class="foot-note">
|
||||
{/* The real brand flash — path taken from the official logo SVG (BRAND D.4).
|
||||
|
||||
Reference in New Issue
Block a user