Skip to content

Commit

Permalink
GEN-766 - feat: redirect home routes (#2796)
Browse files Browse the repository at this point in the history
* feat: redirect car routes

* feat: redirect home routes
  • Loading branch information
guilhermespopolin authored Jul 17, 2023
1 parent 243b46a commit c3ec2af
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions apps/store/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,60 @@ module.exports = withBundleAnalyzer({
permanent: true,
locale: false,
},
{
source: '/(se/)?new-member/car',
has: [
{
type: 'query',
key: 'code',
},
],
destination: '/api/campaign/:code?code=&next=/se/forsakringar/bilforsakring',
permanent: false,
locale: false,
},
{
source: '/(se/)?new-member/car',
destination: '/se/forsakringar/bilforsakring',
permanent: false,
locale: false,
},
{
source: '/se/new-member/home-insurance',
has: [
{
type: 'query',
key: 'code',
},
],
destination: '/api/campaign/:code?code=&next=/se/forsakringar/hemforsakring',
permanent: false,
locale: false,
},
{
source: '/se/new-member/home-insurance',
destination: '/se/forsakringar/hemforsakring',
permanent: false,
locale: false,
},
{
source: '/se-en/new-member/home-insurance',
has: [
{
type: 'query',
key: 'code',
},
],
destination: '/api/campaign/:code?code=&next=/se-en/insurances/home-insurance',
permanent: false,
locale: false,
},
{
source: '/se-en/new-member/home-insurance',
destination: '/se-en/insurances/home-insurance',
permanent: false,
locale: false,
},
]
: []
return [...shutDownMarketsInfo, ...oldSiteRedirects, ...getExperimentVariantRedirects()]
Expand Down

1 comment on commit c3ec2af

@vercel
Copy link

@vercel vercel bot commented on c3ec2af Jul 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.