Skip to content

Conversation

its-the-shrimp
Copy link

Motivation

It's common for file servers to add an .html file extension to the requested path if no file extension is provided, to allow for more concise & human-readable links, e.g. for a request of /dashboard, return /dashboard.html

Solution

Add a html_as_default_extension option to the ServeDir service, which will be true by default, to be in tune with append_index_html_on_directories

This mirrors the common behaviour of file servers
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.

1 participant