File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
desktop/core/src/desktop/js Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -959,13 +959,16 @@ class OnePageViewModel {
959
959
960
960
huePubSub . subscribe ( 'open.link' , href => {
961
961
if ( href ) {
962
+ const prefix = '/hue' ;
962
963
if ( href . startsWith ( '/' ) ) {
963
- if ( window . HUE_BASE_URL && ! href . startsWith ( window . HUE_BASE_URL ) ) {
964
+ if ( window . HUE_BASE_URL . length && href . startsWith ( window . HUE_BASE_URL ) ) {
965
+ page ( href ) ;
966
+ } else if ( href . startsWith ( prefix ) ) {
964
967
page ( window . HUE_BASE_URL + href ) ;
965
968
} else {
966
- page ( href ) ; // Already includes the base_url
969
+ page ( window . HUE_BASE_URL + prefix + href ) ;
967
970
}
968
- } else if ( href . indexOf ( '#' ) === 0 ) {
971
+ } else if ( href . indexOf ( '#' ) == 0 ) {
969
972
// Only place that seem to use this is hbase onclick row
970
973
window . location . hash = href ;
971
974
} else {
You can’t perform that action at this time.
0 commit comments