File tree 2 files changed +8
-2
lines changed
public/components/trace_analytics
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,13 @@ export const Home = (props: HomeProps) => {
120
120
121
121
const [ dataSourceMDSId , setDataSourceMDSId ] = useState ( [ { id : '' , label : '' } ] ) ;
122
122
const [ currentSelectedService , setCurrentSelectedService ] = useState ( '' ) ;
123
- const { defaultRoute = '/services' } = props ;
123
+ let defaultRoute = props . defaultRoute ?? '/services' ;
124
+ const currentHash = window . location . hash . split ( '#' ) [ 1 ] || '' ;
125
+
126
+ if ( currentHash === '/traces' || currentHash === '/services' ) {
127
+ defaultRoute = currentHash ;
128
+ }
129
+
124
130
const { chrome } = props ;
125
131
const isNavGroupEnabled = chrome . navGroup . getNavGroupEnabled ( ) ;
126
132
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export function TraceSideBar(props: { children: React.ReactNode }) {
30
30
{
31
31
name : 'Trace analytics' ,
32
32
id : 1 ,
33
- href : '#/' ,
33
+ href : '#/services ' ,
34
34
items : [
35
35
{
36
36
name : 'Services' ,
You can’t perform that action at this time.
0 commit comments