Commit 83929a21 authored by Clément's avatar Clément

request navigation for parent router

parent 8813ab5d
......@@ -57,7 +57,13 @@ export default class SIBRouter extends HTMLElement {
if(!route) return; //this route is not for me!
if(this.prefix) {
const route = this.prefix.split('/').pop();
this.dispatchEvent(new CustomEvent('requestNavigation', {
detail: {route: route},
bubbles: true,
const id = resource ? resource['@id'] : null;
const path = route.getPath(this.prefix, routeName, id);
//update current URL
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment