Skip to content

Commit 152f737

Browse files
author
Oleh Prypin
committed
Remove unneeded code path
1 parent 30ce6c3 commit 152f737

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

mkdocs_redirects/plugin.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,7 @@ def get_relative_html_path(old_page, new_page, use_directory_urls):
5757
old_path = get_html_path(old_page, use_directory_urls)
5858
new_path, new_hash_fragment = _split_hash_fragment(new_page)
5959

60-
if use_directory_urls:
61-
# remove /index.html from end of path
62-
new_path = posixpath.dirname(new_path) or './'
63-
6460
relative_path = posixpath.relpath(new_path, start=posixpath.dirname(old_path))
65-
6661
if use_directory_urls:
6762
relative_path = relative_path + '/'
6863

0 commit comments

Comments
 (0)