Skip to content

Commit 09fbce3

Browse files
cursoragentarmenzg
andcommitted
Fix legacy stats redirects for org and customer domain paths
Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>
1 parent b82d2fe commit 09fbce3

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

static/app/router/routes.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -812,22 +812,34 @@ function buildRoutes(): RouteObject[] {
812812
children: [
813813
{
814814
path: '/stats/',
815-
withOrgPath: true,
815+
customerDomainOnlyRoute: true,
816816
redirectTo: '/settings/stats/',
817817
},
818+
{
819+
path: '/organizations/:orgId/stats/',
820+
redirectTo: '/settings/:orgId/stats/',
821+
},
818822
{
819823
path: '/stats/issues/',
820-
withOrgPath: true,
824+
customerDomainOnlyRoute: true,
821825
redirectTo: '/settings/stats/issues/',
822826
},
827+
{
828+
path: '/organizations/:orgId/stats/issues/',
829+
redirectTo: '/settings/:orgId/stats/issues/',
830+
},
823831
{
824832
path: '/stats/health/',
825-
withOrgPath: true,
833+
customerDomainOnlyRoute: true,
826834
redirectTo: '/settings/stats/health/',
827835
},
836+
{
837+
path: '/organizations/:orgId/stats/health/',
838+
redirectTo: '/settings/:orgId/stats/health/',
839+
},
828840
{
829841
path: '/organizations/:orgId/stats/team/',
830-
redirectTo: '/organizations/:orgId/settings/stats/issues/',
842+
redirectTo: '/settings/:orgId/stats/issues/',
831843
},
832844
],
833845
};

0 commit comments

Comments
 (0)