Skip to content

fix: build flat page URLs to keep the pre-Astro URL space - #56

Merged
ronaldtse merged 1 commit into
mainfrom
fix/astro-flat-urls
Sep 6, 2026
Merged

fix: build flat page URLs to keep the pre-Astro URL space#56
ronaldtse merged 1 commit into
mainfrom
fix/astro-flat-urls

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Astro's default directory build format (about/index.html) made every legacy URL 301 to a trailing-slash variant and disagree with the canonical tags. Switch to build.format: file (about.html), matching the pre-Astro URL space exactly. Verified locally: dist now contains about.html/leadership.html etc.

Astro's default directory format emits about/index.html, which makes every
legacy URL 301 to a trailing slash and disagree with the canonical tags.
@ronaldtse
ronaldtse merged commit 3aa4f20 into main Sep 6, 2026
3 checks passed
@ronaldtse
ronaldtse deleted the fix/astro-flat-urls branch September 6, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant