Skip to content

Commit 344496d

Browse files
adds redirs for older data and removed block paths (#1223)
This PR adds a redirect for the data block page in Terrafrom when you use the switcher to view an older version of the page. The page did not exist until 1.12, so we are redirecting to the /data-sources page. This is PR recreates #1205, which became bloated with unrelated commits
2 parents b6b191a + 07c6d8b commit 344496d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/terraform-docs-common/redirects.jsonc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,18 @@
648648
"source": "/terraform/language/v:version((?:1\\.(?:1[2-9]|[2-9]\\d)|[2-9]\\d*\\.\\d+)\\.x)/moved",
649649
"destination": "/terraform/language/v:version/block/moved",
650650
"permanent": true
651+
},
652+
// redir for /data block older than 1.11
653+
{
654+
"source": "/terraform/language/v:version(1\\.(?:[1-9]|1[01])\\.x)/block/data",
655+
"destination": "/terraform/language/v:version/data-sources",
656+
"permanent": true
657+
},
658+
// redir for /removed block older than 1.11
659+
{
660+
"source": "/terraform/language/v:version(1\\.(?:[1-9]|1[01])\\.x)/block/removed",
661+
"destination": "/terraform/language/v:version/resources/syntax#removing-resources",
662+
"permanent": true
651663
},
652664
// Terraform migrate docs moved to their own docs set
653665
{

0 commit comments

Comments
 (0)