-
Notifications
You must be signed in to change notification settings - Fork 245
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
Comments
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! |
My MPAs have folders like /admin/xxx/index.html and /site/yyy/index.html so
that behaviour would be useful.
…On Sun, Feb 23, 2025, 11:17 PM Tero Piirainen ***@***.***> wrote:
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!
—
Reply to this email directly, view it on GitHub
<#496 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFO3GI3PT72TEM3VHQPM6IT2RLBQVAVCNFSM6AAAAABXW7ZIWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZXGU4TQMRVHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
[image: tipiirai]*tipiirai* left a comment (nuejs/nue#496)
<#496 (comment)>
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!
—
Reply to this email directly, view it on GitHub
<#496 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFO3GI3PT72TEM3VHQPM6IT2RLBQVAVCNFSM6AAAAABXW7ZIWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZXGU4TQMRVHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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 :-)
The text was updated successfully, but these errors were encountered: