mkdocs / mkdocs-redirects

Open source plugin for Mkdocs page redirects
MIT License
177 stars 26 forks source link

Fix Windows backslashes #9

Closed XhmikosR closed 4 years ago

XhmikosR commented 4 years ago

Not sure if this the proper way (probably not) but it does fix the issue for me on Windows.

Fixes #5

/CC @burkestar @dschaper

Before:

WARNING -  Redirect target 'ftldns/regex/overview.md' does not exist!

After:


<!doctype html>
<html lang="en" class="no-js">
<head>
    <script>var anchor=window.location.hash.substr(1);location.href="/ftldns/regex/overview/"+(anchor?"#"+anchor:"")</script>
    <meta http-equiv="refresh" content="0; url=/ftldns/regex/overview/">
</head>
<body>
Redirecting...
</body>
</html>
XhmikosR commented 4 years ago

@burkestar can you review/merge the open PRs and release a new version please?

XhmikosR commented 4 years ago

@burkestar rebased

XhmikosR commented 4 years ago

BTW the title seems wrong now in master after #12

XhmikosR commented 4 years ago

Oh, NVM, it's something else. I'll change the title in the HTML code and make a new PR.

XhmikosR commented 4 years ago

I just went with whatever was simpler, but feel free to change it as long as it doesn't break again on Windows since there are no tests :)