Skip to content
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

Multi-page app url without '/' suffix #14410

Closed
4 tasks done
jacobbogers opened this issue Sep 19, 2023 · 1 comment
Closed
4 tasks done

Multi-page app url without '/' suffix #14410

jacobbogers opened this issue Sep 19, 2023 · 1 comment

Comments

@jacobbogers
Copy link

Description

The doc here about mutli-page app says you can only access non root index.html with a '/' suffix

Example from the doc (below) you cannot access s /nested/index.html is to using only url path /nested you have to use the suffix / in this case (aka /nested/), can the mandatory suffix requirement be removed?

├── package.json
├── vite.config.js
├── index.html
├── main.js
└── nested
    ├── index.html
    └── nested.js

Suggested solution

make the / suffix optional for urls pointing to index files in directories

Alternative

No response

Additional context

No response

Validations

@bluwy
Copy link
Member

bluwy commented Sep 19, 2023

We're not changing this and keeping it opinionated. There's however an inconsistency issue similar to it at #6596, if that caused the need for a configuration. If you want to change how it's handled, you can inject your own middleware to automatically add a trailing slash if there's none for example.

@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants