File tree 2 files changed +3
-15
lines changed 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,8 @@ export function PrimaryNavigationItems() {
145
145
description = { null }
146
146
>
147
147
< SidebarLink
148
- to = { `/${ prefix } / settings/${ organization . slug } /` }
149
- activeTo = { `/${ prefix } / settings/` }
148
+ to = { `/settings/${ organization . slug } /` }
149
+ activeTo = { `/settings/` }
150
150
analyticsKey = "settings"
151
151
label = { PRIMARY_NAV_GROUP_CONFIG [ PrimaryNavGroup . SETTINGS ] . label }
152
152
>
Original file line number Diff line number Diff line change @@ -25,20 +25,8 @@ export function makeLinkPropsFromTo(to: string): {
25
25
state : Record < PropertyKey , unknown > ;
26
26
to : LocationDescriptor ;
27
27
} {
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
-
36
28
return {
37
- to : normalizeUrl ( {
38
- pathname,
39
- search,
40
- hash,
41
- } ) ,
29
+ to,
42
30
state : { source : SIDEBAR_NAVIGATION_SOURCE } ,
43
31
} ;
44
32
}
You can’t perform that action at this time.
0 commit comments