feat: smart wiki filenames #215

Merged
jmiller merged 1 commits from fix/wiki-smart-filenames into dev 2026-05-26 18:28:20 +00:00
Owner

Sanitize wiki page names.

Sanitize wiki page names.
jmiller added 1 commit 2026-05-26 18:26:37 +00:00
feat: smart wiki filenames — sanitize special characters to hyphens
Branch Policy Check / Verify merge target (pull_request) Successful in 1s
PR RC Release / Build RC Release (pull_request) Successful in 3s
1fb97eeeeb
New wiki page titles are now sanitized before creating the git file:
- Spaces and special characters replaced with hyphens
- Consecutive hyphens collapsed to single hyphen
- Leading/trailing hyphens trimmed

Examples:
- "My Page Name" -> "My-Page-Name"
- "API & Docs (v2)" -> "API-Docs-v2"
- "100% Complete!!" -> "100-Complete"

Only affects NEW pages. Existing wiki pages with legacy filenames
(spaces, URL encoding) continue to work — the read path is unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller merged commit 9dc85cfc2d into dev 2026-05-26 18:28:20 +00:00
Author
Owner

Deployed in v1.26.1-moko.05.05.00.

Authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com

Deployed in v1.26.1-moko.05.05.00. *Authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>*
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#215