Skip to content

Commit

Permalink
#95263 Set kbn-href when location changed (#95377)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
eric-wei1990 and kibanamachine authored Apr 22, 2021
1 parent fecdd45 commit 98c7d7d
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 98c7d7d

Please sign in to comment.