Skip to content

Serve folder's index when requesting folder without slash#9066

Merged
mischnic merged 2 commits into
v2from
serve-folder-as-file
Jun 8, 2023
Merged

Serve folder's index when requesting folder without slash#9066
mischnic merged 2 commits into
v2from
serve-folder-as-file

Conversation

@mischnic

@mischnic mischnic commented Jun 2, 2023

Copy link
Copy Markdown
Member

Closes #9061

Before #8957, GET /foo could return /foo/index.html. But after my change at didn't happen anymore. So this line from that PR wasn't really thought through:

  • /foo doesn't match /foo/index.html, you need /foo/ for that (this would otherwise break relative URLs)

Change that case back again

@mischnic mischnic merged commit f7fedaf into v2 Jun 8, 2023
@devongovett devongovett deleted the serve-folder-as-file branch June 8, 2023 20:15
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.

Running dev server on multiple entries only serves the first one since 2.9.0

3 participants