Skip to content

Don't require trailing slash when serving a directory index#2507

Merged
oprypin merged 1 commit intomkdocs:masterfrom
oprypin:sitedir
Jul 18, 2021
Merged

Don't require trailing slash when serving a directory index#2507
oprypin merged 1 commit intomkdocs:masterfrom
oprypin:sitedir

Conversation

@oprypin
Copy link
Copy Markdown

@oprypin oprypin commented Jul 17, 2021

Don't require trailing slash when serving a directory index in the livereload/local server.

Instead of showing a 404 error, detect if it's a directory and redirect to a path with a trailing slash added.

Fixes #2456

in the livereload/local server.

Instead of showing a 404 error, detect if it's a directory and redirect to a path with a trailing slash added
@oprypin

This comment was marked as abuse.

@ultrabug
Copy link
Copy Markdown
Member

Sorry too slow to respond but I agree it's a good move

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.

V.1.2: Markdown links earlier processed as html files, are now processed as directories

2 participants