Skip to content

Commit f791585

Browse files
authored
fix(nav): Fix settings link (#89135)
1 parent f7ee478 commit f791585

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

static/app/views/nav/primary/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ export function PrimaryNavigationItems() {
145145
description={null}
146146
>
147147
<SidebarLink
148-
to={`/${prefix}/settings/${organization.slug}/`}
149-
activeTo={`/${prefix}/settings/`}
148+
to={`/settings/${organization.slug}/`}
149+
activeTo={`/settings/`}
150150
analyticsKey="settings"
151151
label={PRIMARY_NAV_GROUP_CONFIG[PrimaryNavGroup.SETTINGS].label}
152152
>

static/app/views/nav/utils.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,8 @@ export function makeLinkPropsFromTo(to: string): {
2525
state: Record<PropertyKey, unknown>;
2626
to: LocationDescriptor;
2727
} {
28-
const {pathname, search, hash} = new URL(
29-
to,
30-
// For partial URLs (pathname + hash? + params?), we use a
31-
// placeholder base URL to create a parseable URL string.
32-
// Note that both the URL scheme and domain are discarded.
33-
to.startsWith('http') ? undefined : 'https://sentry.io/'
34-
);
35-
3628
return {
37-
to: normalizeUrl({
38-
pathname,
39-
search,
40-
hash,
41-
}),
29+
to,
4230
state: {source: SIDEBAR_NAVIGATION_SOURCE},
4331
};
4432
}

0 commit comments

Comments
 (0)