Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return to forward slash mandatory before paths to support root wikis #2171

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

benoit74
Copy link
Contributor

@benoit74 benoit74 commented Feb 18, 2025

Fix #2163

Mostly everything is explained in the issue, basically we want to support --mwWikiPath / since it is a common scenario, and the simplest way to support this is to consider that all path have a forward slash at the beginning, and that the base URLs don't.

@benoit74 benoit74 self-assigned this Feb 18, 2025
@benoit74 benoit74 force-pushed the api_path_slashes branch 2 times, most recently from 3b785ac to 9f21430 Compare February 18, 2025 16:57
Copy link

codecov bot commented Feb 18, 2025

Codecov Report

Attention: Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.

Project coverage is 75.84%. Comparing base (316f730) to head (abe3fe0).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/sanitize-argument.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2171      +/-   ##
==========================================
- Coverage   75.88%   75.84%   -0.04%     
==========================================
  Files          41       41              
  Lines        3222     3225       +3     
  Branches      706      706              
==========================================
+ Hits         2445     2446       +1     
- Misses        660      662       +2     
  Partials      117      117              

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

@benoit74 benoit74 marked this pull request as ready for review February 18, 2025 19:47
@benoit74 benoit74 requested a review from kelson42 February 18, 2025 19:47
@kelson42 kelson42 merged commit 259b3d8 into main Feb 18, 2025
3 checks passed
@kelson42 kelson42 deleted the api_path_slashes branch February 18, 2025 22:18
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.

Find a solution to set mwWikiPath=/ (root, no /wiki/) - avoid double slash in URLs
2 participants