@@ -60,15 +60,15 @@ const SideNav = () => {
60
60
name : "Home" ,
61
61
id : htmlIdGenerator ( "basicExample" ) ( ) ,
62
62
onClick : ( ) => {
63
- navigate ( `/p/${ projectName } /` ) ;
63
+ navigate ( `${ process . env . PUBLIC_URL } /p/${ projectName } /` ) ;
64
64
} ,
65
65
items : [
66
66
{
67
67
name : dataSourcesLabel ,
68
68
id : htmlIdGenerator ( "dataSources" ) ( ) ,
69
69
icon : < EuiIcon type = { DataSourceIcon16 } /> ,
70
70
onClick : ( ) => {
71
- navigate ( `/p/${ projectName } /data-source` ) ;
71
+ navigate ( `${ process . env . PUBLIC_URL } /p/${ projectName } /data-source` ) ;
72
72
} ,
73
73
isSelected : useMatchSubpath ( "data-source" ) ,
74
74
} ,
@@ -77,7 +77,7 @@ const SideNav = () => {
77
77
id : htmlIdGenerator ( "entities" ) ( ) ,
78
78
icon : < EuiIcon type = { EntityIcon16 } /> ,
79
79
onClick : ( ) => {
80
- navigate ( `/p/${ projectName } /entity` ) ;
80
+ navigate ( `${ process . env . PUBLIC_URL } /p/${ projectName } /entity` ) ;
81
81
} ,
82
82
isSelected : useMatchSubpath ( "entity" ) ,
83
83
} ,
@@ -86,7 +86,7 @@ const SideNav = () => {
86
86
id : htmlIdGenerator ( "featureView" ) ( ) ,
87
87
icon : < EuiIcon type = { FeatureViewIcon16 } /> ,
88
88
onClick : ( ) => {
89
- navigate ( `/p/${ projectName } /feature-view` ) ;
89
+ navigate ( `${ process . env . PUBLIC_URL } /p/${ projectName } /feature-view` ) ;
90
90
} ,
91
91
isSelected : useMatchSubpath ( "feature-view" ) ,
92
92
} ,
@@ -95,7 +95,7 @@ const SideNav = () => {
95
95
id : htmlIdGenerator ( "featureService" ) ( ) ,
96
96
icon : < EuiIcon type = { FeatureServiceIcon16 } /> ,
97
97
onClick : ( ) => {
98
- navigate ( `/p/${ projectName } /feature-service` ) ;
98
+ navigate ( `${ process . env . PUBLIC_URL } /p/${ projectName } /feature-service` ) ;
99
99
} ,
100
100
isSelected : useMatchSubpath ( "feature-service" ) ,
101
101
} ,
@@ -104,7 +104,7 @@ const SideNav = () => {
104
104
id : htmlIdGenerator ( "savedDatasets" ) ( ) ,
105
105
icon : < EuiIcon type = { DatasetIcon16 } /> ,
106
106
onClick : ( ) => {
107
- navigate ( `/p/${ projectName } /data-set` ) ;
107
+ navigate ( `${ process . env . PUBLIC_URL } /p/${ projectName } /data-set` ) ;
108
108
} ,
109
109
isSelected : useMatchSubpath ( "data-set" ) ,
110
110
} ,
0 commit comments