Skip to content

Commit cad8758

Browse files
authored
fix(nav): Correct org settings links in org dropdown (#87296)
1 parent 962d1e6 commit cad8758

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

static/app/components/nav/orgDropdown.spec.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ describe('OrgDropdown', function () {
2626

2727
expect(screen.getByRole('link', {name: 'Organization Settings'})).toHaveAttribute(
2828
'href',
29-
`/settings/${organization.slug}/`
29+
`/organizations/${organization.slug}/settings/`
3030
);
3131
expect(screen.getByRole('link', {name: 'Members'})).toHaveAttribute(
3232
'href',
33-
`/settings/${organization.slug}/members/`
33+
`/organizations/${organization.slug}/settings/members/`
3434
);
3535
expect(screen.getByRole('link', {name: 'Teams'})).toHaveAttribute(
3636
'href',
37-
`/settings/${organization.slug}/teams/`
37+
`/organizations/${organization.slug}/settings/teams/`
3838
);
3939
});
4040

static/app/components/nav/orgDropdown.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -107,26 +107,26 @@ export function OrgDropdown({className}: {className?: string}) {
107107
{
108108
key: 'organization-settings',
109109
label: t('Organization Settings'),
110-
to: `/settings/${organization.slug}/`,
110+
to: `/organizations/${organization.slug}/settings/`,
111111
hidden: !hasOrgRead,
112112
},
113113
{
114114
key: 'members',
115115
label: t('Members'),
116-
to: `/settings/${organization.slug}/members/`,
116+
to: `/organizations/${organization.slug}/settings/members/`,
117117
hidden: !hasMemberRead,
118118
},
119119
{
120120
key: 'teams',
121121
label: t('Teams'),
122-
to: `/settings/${organization.slug}/teams/`,
122+
to: `/organizations/${organization.slug}/settings/teams/`,
123123
hidden: !hasTeamRead,
124124
},
125125
{
126126
key: 'billing',
127127
label: t('Usage & Billing'),
128-
to: `/settings/${organization.slug}/billing/`,
129-
hidden: !hasBillingAccess,
128+
to: `/organizations/${organization.slug}/settings/billing/`,
129+
hidden: hasBillingAccess,
130130
},
131131
{
132132
key: 'switch-organization',

0 commit comments

Comments
 (0)