Skip to content

fix: use forward slashes in page names on Windows hosts - #567

Merged
TrueBrain merged 1 commit into
mainfrom
fix/windows-path-separators
Nov 21, 2026
Merged

TrueBrain merged 1 commit into
mainfrom
fix/windows-path-separators

Conversation

@TrueBrain

Copy link
Copy Markdown
Owner

Fixes #110.

On Windows, os.path and glob use \, which leaked into page names, languages and links (en\Main Page).

  • Page name normalization in web_routes.py now uses posixpath.
  • glob results in metadata.py and storage/local.py are converted to /. This is a no-op on Linux.

Tested on Linux: black and flake8 pass. A local server renders links as /en/Sub/Child, and /en/Sub/../ and /en/./Sub/Child still redirect. Not tested on a Windows host.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.48%. Comparing base (7538b8a) to head (7efb91c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #567      +/-   ##
==========================================
+ Coverage   83.47%   83.48%   +0.01%     
==========================================
  Files          52       52              
  Lines        2796     2798       +2     
  Branches      423      423              
==========================================
+ Hits         2334     2336       +2     
  Misses        351      351              
  Partials      111      111              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TrueBrain
TrueBrain merged commit 2cf2ec5 into main Nov 21, 2026
15 checks passed
@TrueBrain
TrueBrain deleted the fix/windows-path-separators branch November 21, 2026 12:56
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.

Links are broken when running on Windows host

1 participant