Skip to content

Fix 404s for dots in slugs - #279

Merged
janezd merged 1 commit into
biolab:masterfrom
janezd:dots-in-urls
Sep 23, 2026
Merged

janezd merged 1 commit into
biolab:masterfrom
janezd:dots-in-urls

Conversation

@janezd

@janezd janezd commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Books and collections with URLs that contain "." are not served. This happens because proxy.ts treats all paths that include "." as static files, and redirects them to /static (which itself contains a route.ts that reads and serves the file).

In Next 16, proxy.ts has access to local file system; this PR checks whether a path exists as a file before redirecting it.

@janezd
janezd merged commit c57f2e0 into biolab:master Sep 23, 2026
1 check passed
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