Skip to content

Commit

Permalink
#95263 Set kbn-href when location changed (#95377) (#98045)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Eric Wei <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
3 people authored Apr 22, 2021
1 parent 3a256b6 commit 1293ea8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x-pack/plugins/monitoring/public/angular/app_modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ function createHrefModule(core: CoreStart) {
$attr.$set('href', core.http.basePath.prepend(url));
}
});

_$scope.$on('$locationChangeSuccess', () => {
const url = getSafeForExternalLink($attr.href as string);
$attr.$set('href', core.http.basePath.prepend(url));
});
},
},
};
Expand Down

0 comments on commit 1293ea8

Please sign in to comment.