Skip to content

Commit

Permalink
fix(md): properly redirect the old ui links to the new ui (#9287)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranihorev authored Jun 4, 2021
1 parent ea32853 commit d998362
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions app/scripts/modules/core/src/managed/managed.states.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,7 @@ module(MANAGED_STATES, [APPLICATION_STATE_PROVIDER]).config([
children: [],
redirectTo: (transition) => {
if (isNewUI()) {
return {
state: 'home.applications.application.environments.history',
params: {
version: transition.params().version,
},
};
return transition.targetState().withState('home.applications.application.environments.history');
}
return undefined;
},
Expand All @@ -103,9 +98,9 @@ module(MANAGED_STATES, [APPLICATION_STATE_PROVIDER]).config([
},
},
children: [artifactVersion, ...routes],
redirectTo: () => {
redirectTo: (transition) => {
if (isNewUI()) {
return 'home.applications.application.environments.overview';
return transition.targetState().withState('home.applications.application.environments.overview');
}
return undefined;
},
Expand Down

0 comments on commit d998362

Please sign in to comment.