Skip to content

Commit d4021aa

Browse files
Move RSS redirects to top and add parameter variants
Moved RSS feed redirects to the very top of the redirects list to ensure they are evaluated before any static file handlers. Also added: - Trailing slash variants (ts.rss/, csharp.rss/) - Parameterized extension variants (ts.:ext, csharp.:ext) This attempts to work around the issue where .rss files are being caught by a static file handler (x-matched-path: /[host]/[domain]/static/[slug]) before the redirect rules are evaluated. Co-Authored-By: Niels Swimberghe <[email protected]>
1 parent fcef6c2 commit d4021aa

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

fern/docs.yml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,32 @@ experimental:
170170
# Redirects for new docs structure migration
171171
redirects:
172172

173+
# ============================================================================
174+
# RSS FEED REDIRECTS (must be first to avoid static handler)
175+
# ============================================================================
176+
177+
# Exact RSS redirects
178+
- source: /learn/sdks/introduction/changelog/ts.rss
179+
destination: /learn/sdks/generators/typescript/changelog.rss
180+
- source: /learn/sdks/introduction/changelog/csharp.rss
181+
destination: /learn/sdks/generators/csharp/changelog.rss
182+
- source: /learn/cli-reference/changelog.rss
183+
destination: /learn/cli-api-reference/cli-reference/changelog.rss
184+
185+
# RSS redirects with trailing slash
186+
- source: /learn/sdks/introduction/changelog/ts.rss/
187+
destination: /learn/sdks/generators/typescript/changelog.rss
188+
- source: /learn/sdks/introduction/changelog/csharp.rss/
189+
destination: /learn/sdks/generators/csharp/changelog.rss
190+
- source: /learn/cli-reference/changelog.rss/
191+
destination: /learn/cli-api-reference/cli-reference/changelog.rss
192+
193+
# Parameterized extension variants
194+
- source: /learn/sdks/introduction/changelog/ts.:ext
195+
destination: /learn/sdks/generators/typescript/changelog.rss
196+
- source: /learn/sdks/introduction/changelog/csharp.:ext
197+
destination: /learn/sdks/generators/csharp/changelog.rss
198+
173199
# ============================================================================
174200
# GENERAL REDIRECTS
175201
# ============================================================================
@@ -236,15 +262,6 @@ redirects:
236262
destination: /learn/sdks/overview/project-structure
237263
- source: /learn/sdks/introduction/customer-showcase
238264
destination: /learn/sdks/customer-showcase
239-
240-
# RSS feed redirects (must be before wildcard redirects to match correctly)
241-
- source: /learn/sdks/introduction/changelog/ts.rss
242-
destination: /learn/sdks/generators/typescript/changelog.rss
243-
- source: /learn/sdks/introduction/changelog/csharp.rss
244-
destination: /learn/sdks/generators/csharp/changelog.rss
245-
- source: /learn/cli-reference/changelog.rss
246-
destination: /learn/cli-api-reference/cli-reference/changelog.rss
247-
248265
- source: /learn/sdks/introduction/changelog/ts/:slug*
249266
destination: /learn/sdks/generators/typescript/changelog/:slug*
250267
- source: /learn/sdks/introduction/changelog/python/:slug*

0 commit comments

Comments
 (0)