...
 
Commits (2)
......@@ -41,12 +41,12 @@ export default class SIBRouter extends HTMLElement {
display(routeName = this.currentRouteName, resource, keepURL=false) {
for (let route of this.routes) {
if (routeName === route.name) {
route.activate(keepURL);
this.dispatchEvent(
new CustomEvent('navigate', {
detail: { route: routeName, resource },
}),
);
route.activate(keepURL);
} else {
route.hide();
}
......