Commit fa4eaac6 authored by Clément's avatar Clément

update: use-id on route

parent 8c9bac77
......@@ -76,7 +76,7 @@ export default class SIBRouter extends HTMLElement {
});
}
const id = resource ? resource['@id'] : null;
const path = route.getPath(this.prefix, routeName, this.hasAttribute('use-id') ? id : '');
const path = route.getPath(this.prefix, routeName, route.hasAttribute('use-id') ? id : '');
if (!keepURL) {
//update current URL
const prefix = this.useHash ? '#' : '/';
......
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