mkdocs / mkdocs-redirects

Open source plugin for Mkdocs page redirects
MIT License
176 stars 25 forks source link

Added conversion of Windows path separators to URL separators #28

Closed frankkopp closed 2 years ago

frankkopp commented 3 years ago

Fix for usage on windows when os.path.join adds backslash as path separator.

Adds this before writing the redirect HTML:

    # Make sure to convert Windows path separators to URL separators
    new_path = new_path.replace('\\', '/')

Closes #27

halotroop2288 commented 2 years ago

Please merge this.