Skip to content

index.html in subdirectories #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wgehner opened this issue Feb 24, 2025 · 2 comments
Open

index.html in subdirectories #496

wgehner opened this issue Feb 24, 2025 · 2 comments
Labels
nuekit Related to nuekit package

Comments

@wgehner
Copy link

wgehner commented Feb 24, 2025

Describe the Bug

It looks like an arbitrary index.html in a directory is served, as in /mydir/index.html
but an arbitrary index.html in a subdirectory is not, as in /mydir/sub/index.html
The latter only works with /mydir/sub/index.md

Let me know if you need a reproducible project.

Very excited about Nue :-)

@wgehner wgehner added the bug label Feb 24, 2025
@tipiirai
Copy link
Contributor

This is actually on purpose. When a root folder has an index.html file the directory is considered a single-page application where every doc request points to that index file. This is currently undocumented because SPA's are not released until next month. We could, however, make an exception if the pathname ends with .html, but that will not be implemented until SPA's are out.

So glad to hear you're excited!

@wgehner
Copy link
Author

wgehner commented Feb 24, 2025 via email

@nobkd nobkd added nuekit Related to nuekit package and removed bug labels Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nuekit Related to nuekit package
Projects
None yet
Development

No branches or pull requests

3 participants