Skip to content

Commit

Permalink
Remove trailing slashes for block editor redirects
Browse files Browse the repository at this point in the history
Fixes issues with path comparison

See #446
  • Loading branch information
adamwoodnz committed Dec 18, 2023
1 parent a4977eb commit 7f982b5
Showing 1 changed file with 21 additions and 21 deletions.
Expand Up @@ -56,29 +56,29 @@ public function redirects() {
'reference-guides/block-api/versions' => 'reference-guides/block-api/block-api-versions',

// After handbook restructuring, December 2023.
'getting-started/create-block/' => 'getting-started/tutorial',
'getting-started/create-block/wp-plugin/' => 'getting-started/tutorial',
'getting-started/create-block/block-anatomy/' => 'getting-started/tutorial',
'getting-started/create-block/attributes/' => 'getting-started/tutorial',
'getting-started/create-block/block-code/' => 'getting-started/tutorial',
'getting-started/create-block/author-experience/' => 'getting-started/tutorial',
'getting-started/create-block/finishing/' => 'getting-started/tutorial',
'getting-started/create-block/submitting-to-block-directory/' => 'getting-started/tutorial',
'how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/' => 'getting-started/fundamentals/block-json',
'how-to-guides/block-tutorial/block-supports-in-static-blocks/' => 'getting-started/fundamentals/block-json',
'how-to-guides/block-tutorial/block-supports-in-dynamic-blocks/' => 'getting-started/fundamentals/block-json',
'how-to-guides/javascript' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/plugins-background/' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/loading-javascript/' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/extending-the-block-editor/' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/troubleshooting/' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/versions-and-building/' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/scope-your-code/' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/js-build-setup/' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/esnext-js/' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'getting-started/create-block' => 'getting-started/tutorial',
'getting-started/create-block/wp-plugin' => 'getting-started/tutorial',
'getting-started/create-block/block-anatomy' => 'getting-started/tutorial',
'getting-started/create-block/attributes' => 'getting-started/tutorial',
'getting-started/create-block/block-code' => 'getting-started/tutorial',
'getting-started/create-block/author-experience' => 'getting-started/tutorial',
'getting-started/create-block/finishing' => 'getting-started/tutorial',
'getting-started/create-block/submitting-to-block-directory' => 'getting-started/tutorial',
'how-to-guides/block-tutorial/introducing-attributes-and-editable-fields' => 'getting-started/fundamentals/block-json',
'how-to-guides/block-tutorial/block-supports-in-static-blocks' => 'getting-started/fundamentals/block-json',
'how-to-guides/block-tutorial/block-supports-in-dynamic-blocks' => 'getting-started/fundamentals/block-json',
'how-to-guides/javascript' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/plugins-background' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/loading-javascript' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/extending-the-block-editor' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/troubleshooting' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/versions-and-building' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/scope-your-code' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/js-build-setup' => 'getting-started/fundamentals/javascript-in-the-block-editor',
'how-to-guides/javascript/esnext-js' => 'getting-started/fundamentals/javascript-in-the-block-editor',

// After handbook restructuring, March 2021.
'handbook/versions-in-wordpress/' => 'contributors/versions-in-wordpress',
'handbook/versions-in-wordpress' => 'contributors/versions-in-wordpress',
'architecture/fse-templates' => 'explanations/architecture/full-site-editing-templates',
'developers/internationalization' => 'how-to-guides/internationalization',
'developers/richtext' => 'reference-guides/richtext',
Expand Down

0 comments on commit 7f982b5

Please sign in to comment.