Skip to content

Commit

Permalink
prepend basePath when navigating from home links (#79318)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Oct 2, 2020
1 parent 95102ab commit 952bb07
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const createAppNavigationHandler = (targetUrl: string) => (event: MouseEv
if (event.altKey || event.metaKey || event.ctrlKey) {
return;
}
const { application, addBasePath } = getServices();
event.preventDefault();
getServices().application.navigateToUrl(targetUrl);
application.navigateToUrl(addBasePath(targetUrl));
};

0 comments on commit 952bb07

Please sign in to comment.