Skip to content

Commit

Permalink
Fix renamed component redirects (Shopify#10408)
Browse files Browse the repository at this point in the history
<!--
  ☝️How to write a good PR title:
- Prefix it with [ComponentName] (if applicable), for example: [Button]
  - Start with a verb, for example: Add, Delete, Improve, Fix…
  - Give as much context as necessary and as little as possible
  - Prefix it with [WIP] while it’s a work in progress
-->

### WHY are these changes introduced?

Fixes Shopify#10107
  • Loading branch information
kyledurand authored Sep 14, 2023
1 parent 1a1a8d3 commit 178e973
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions polaris.shopify.com/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,6 @@ const layoutAndStructure = [
destination: '/components/layout-and-structure/inline-grid',
permanent: false,
},
{
source: '/components/columns',
destination: '/components/layout-and-structure/inline-grid',
permanent: false,
},
{
source: '/components/divider',
destination: '/components/layout-and-structure/divider',
Expand Down Expand Up @@ -397,12 +392,11 @@ const layoutAndStructure = [
destination: '/components/layout-and-structure/grid',
permanent: false,
},
// TODO: Re-enable this redirect once the new inline stack component is released
// {
// source: '/components/layout-and-structure/horizontal-stack',
// destination: '/components/layout-and-structure/inline-stack',
// permanent: false,
// },
{
source: '/components/layout-and-structure/horizontal-stack',
destination: '/components/layout-and-structure/inline-stack',
permanent: false,
},
{
source: '/components/structure/layout',
destination: '/components/layout-and-structure/layout',
Expand Down Expand Up @@ -439,8 +433,8 @@ const layoutAndStructure = [
permanent: false,
},
{
source: '/components/layout-and-structure/alpha-stack',
destination: '/components/layout-and-structure/vertical-stack',
source: '/components/layout-and-structure/vertical-stack',
destination: '/components/layout-and-structure/block-stack',
permanent: false,
},
{
Expand Down

0 comments on commit 178e973

Please sign in to comment.