Improve redirects documentation with advanced regex patterns #1283
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improve redirects documentation with advanced regex patterns
Summary
Enhanced the redirects documentation based on user feedback about difficulty configuring complex regex-based redirects. The user specifically mentioned:
Changes made to
fern/snippets/redirects.mdx:{0}literal delimiter syntax for separating parametersReview & Testing Checklist for Human
{0}delimiter and double backslashes)\\d{4}and similar patterns are properly escaped for YAML:year,:month, etc.) can actually be referenced in destination URLs as shownRecommended test plan:
/release-notes/2024-12redirect correctly to/docs/release-notes/2024/12/1Notes
Session: https://app.devin.ai/sessions/3ac1263b00304808bdeffdb336395807
Requested by: danny@buildwithfern.com (@dannysheridan)