Skip to content

Commit 6f64290

Browse files
committed
fix: normalize README only to index
closes mkdocs#36
1 parent b6c501c commit 6f64290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mkdocs_redirects/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def get_html_path(path, use_directory_urls):
7474
name_orig = posixpath.splitext(filename)[0]
7575

7676
# Both `index.md` and `README.md` files are normalized to `index.html` during build
77-
name = 'index' if name_orig.lower() in ('index', 'readme') else name_orig
77+
name = 'index' if name_orig in ('index', 'README') else name_orig
7878

7979
# Directory URLs require some different logic. This mirrors mkdocs' internal logic.
8080
if use_directory_urls:

0 commit comments

Comments
 (0)