Skip to content

Commit 817b671

Browse files
authored
Fix broken links by adding Azure Static Web Apps redirects (#2772)
This PR addresses broken links that result in 404 errors due to the documentation site migration from `https://nkdagility.com/learn/azure-devops-migration-tools` to `https://devopsmigration.io/`. ## Changes Made Added two redirect rules to `docs/staticwebapp.config.json`: 1. **Remove old path prefix**: Redirects `/learn/azure-devops-migration-tools/*` to `/*` - Example: `https://devopsmigration.io/learn/azure-devops-migration-tools/Reference/FieldMaps/FieldValueMap/` → `https://devopsmigration.io/Reference/FieldMaps/FieldValueMap/` - This affects approximately 70 pages (all FieldMaps, Processors, Endpoints, etc.) 2. **Remove .md extension**: Redirects `*/index.md` to `*/` - Example: `https://devopsmigration.io/Reference/Processors/Endpoints/index.md` → `https://devopsmigration.io/Reference/Processors/Endpoints/` ## Configuration ```json { "routes": [ { "route": "/learn/azure-devops-migration-tools/*", "redirect": "/{*}" }, { "route": "*/index.md", "redirect": "{*}/" } ], "responseOverrides": { "404": { "rewrite": "/404" } } } ``` These redirect rules follow the Azure Static Web Apps configuration format and will automatically handle the broken links when deployed. Fixes #2771. <!-- START COPILOT CODING AGENT TIPS --> --- 💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click [here](https://survey.alchemer.com/s3/8343779/Copilot-Coding-agent) to start the survey.
2 parents 5724b31 + 117f4f2 commit 817b671

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/staticwebapp.config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
{
2+
"routes": [
3+
{
4+
"route": "/learn/azure-devops-migration-tools/*",
5+
"redirect": "/{*}"
6+
},
7+
{
8+
"route": "*/index.md",
9+
"redirect": "{*}/"
10+
}
11+
],
212
"responseOverrides": {
313
"404": {
414
"rewrite": "/404"

0 commit comments

Comments
 (0)