File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,13 @@ export const ArtifactPage: FunctionComponent<PageProperties> = () => {
97
97
} ;
98
98
99
99
const handleTabClick = ( _event : any , tabIndex : any ) : void => {
100
+ const gid : string = encodeURIComponent ( groupId as string ) ;
101
+ const aid : string = encodeURIComponent ( artifactId as string ) ;
102
+
100
103
if ( tabIndex === "overview" ) {
101
- appNavigation . navigateTo ( `/explore/${ groupId } /${ artifactId } ` ) ;
104
+ appNavigation . navigateTo ( `/explore/${ gid } /${ aid } ` ) ;
102
105
} else {
103
- appNavigation . navigateTo ( `/explore/${ groupId } /${ artifactId } /${ tabIndex } ` ) ;
106
+ appNavigation . navigateTo ( `/explore/${ gid } /${ aid } /${ tabIndex } ` ) ;
104
107
}
105
108
} ;
106
109
Original file line number Diff line number Diff line change @@ -83,10 +83,12 @@ export const GroupPage: FunctionComponent<PageProperties> = () => {
83
83
} ;
84
84
85
85
const handleTabClick = ( _event : any , tabIndex : any ) : void => {
86
+ const gid : string = encodeURIComponent ( groupId as string ) ;
87
+
86
88
if ( tabIndex === "overview" ) {
87
- appNavigation . navigateTo ( `/explore/${ groupId } ` ) ;
89
+ appNavigation . navigateTo ( `/explore/${ gid } ` ) ;
88
90
} else {
89
- appNavigation . navigateTo ( `/explore/${ groupId } /${ tabIndex } ` ) ;
91
+ appNavigation . navigateTo ( `/explore/${ gid } /${ tabIndex } ` ) ;
90
92
}
91
93
} ;
92
94
You can’t perform that action at this time.
0 commit comments