@@ -99,7 +99,7 @@ export default class NavMenuComponent extends Vue {
9999
100100 if ( paramCount === 1 && currentRoute . params . hasOwnProperty ( 'applicationId' ) ) {
101101 if ( applicationId == null ) {
102- this . $router . push ( { name : currentRoute . name } ) ;
102+ this . $router . push ( { name : currentRoute . name } ) ;
103103 PubSubService . Instance . publish ( MenuApi . MessagingTopics . ApplicationChanged , { applicationId : null } ) ;
104104 } else {
105105 this . $router . push ( { name : currentRoute . name , params : { applicationId : applicationId . toString ( ) } } ) ;
@@ -112,9 +112,14 @@ export default class NavMenuComponent extends Vue {
112112 this . $router . push ( { name : 'discover' , params : { applicationId : applicationId . toString ( ) } } ) ;
113113 } else if ( currentRoute . path . indexOf ( '/analyze' ) === 0 ) {
114114 this . $router . push ( { name : 'analyzeHome' , params : { applicationId : applicationId . toString ( ) } } ) ;
115- } else if ( currentRoute . path . indexOf ( '/manage/' ) !== - 1 && currentRoute . path . indexOf ( '/manage/application' ) === - 1 ) {
116- const route = { name : 'manageAppSettings' , params : { applicationId : applicationId . toString ( ) } } ;
117- this . $router . push ( route ) ;
115+ } else if ( currentRoute . path . indexOf ( '/manage/' ) !== - 1 ) {
116+ if ( applicationId ) {
117+ const route = { name : 'manageAppSettings' , params : { applicationId : applicationId . toString ( ) } } ;
118+ this . $router . push ( route ) ;
119+ } else {
120+ const route = { name : 'manageHome' } ;
121+ this . $router . push ( route ) ;
122+ }
118123 } else {
119124 const route = { name : currentRoute . name , params : { applicationId : applicationId . toString ( ) } } ;
120125 this . $router . push ( route ) ;
0 commit comments