Skip to content

Commit 8199611

Browse files
authored
Patch weird redirect bug (#1380)
1 parent 6adaca2 commit 8199611

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/vault/v1.21.x/redirects.jsonc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,5 +547,12 @@
547547
"source": "/vault/docs/:version(v1\\.*\\.x)/v:ver(1\\.*\\.x)/:slug*",
548548
"destination": "/vault/docs/:version/:slug*",
549549
"permanent": true
550+
},
551+
552+
// Correct double-versioned upgrade to strip the "v" from the page name
553+
{
554+
"source": "/vault/docs/v:version(1\\.(?:9|1[0-8])\\.x)/upgrading/upgrade-to-v:slug",
555+
"destination": "/vault/docs/v:version/upgrading/upgrade-to-:version",
556+
"permanent": true
550557
}
551558
]

0 commit comments

Comments
 (0)