-
Notifications
You must be signed in to change notification settings - Fork 19
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
Index files inside folders not working by default with clean URLs #1098
Comments
Raised a PR: #1099 |
Hey! Could you help me understand what you’re trying to accomplish? Is there a reason you don’t want to name the file |
Hi. The website I'm building has many pages, so I prefer to have a folder for each of them that contains an |
Got it. So this is mostly an organizational issue? Instead of this:
You want this:
Does it make sense to change this behavior? I’m not sure.
Does that make sense? |
Thanks for your suggestions. I get your point, but the use of There's also the file collocation argument. Having everything related to a unit of information in the same folder provides an easier-to-understand folder structure. Points 2 and 3 could be solved by following the same approach web servers use to decide which file takes priority loading in this scenario: |
I was expecting that any
index.html.jsx
file would automatically work as a clean URL when placed inside a folder.Example:
A file placed in
/changelog/index.html.jsx
would be loaded when visiting the http://localhost:2468/changelog URLInstead, the default system forces you to go to http://localhost:2468/changelog/index.html
Is there any way to make it work as I intend? Thanks!
The text was updated successfully, but these errors were encountered: