sort-redirects
Installation
SKILL.md
Sort Redirects
Sort redirect entries in Open Publishing redirection JSON files alphabetically by path. This ensures consistency and makes the redirect files easier to maintain.
When to Use
- After adding redirect entries to a JSON file
- When the redirect file has become unsorted
- After merging branches that may have caused unsorted entries
Steps
- Identify the redirection file - Determine which
.openpublishing.redirection.*.jsonfile needs sorting. - Run the sort script - Use the
sort-redirects.ps1script with the file path.
Scripts
sort-redirects.ps1
Related skills