Commit 8c9bac77 authored by Clément's avatar Clément

update: use-id attribute

parent 7e22d180
......@@ -76,7 +76,7 @@ export default class SIBRouter extends HTMLElement {
});
}
const id = resource ? resource['@id'] : null;
const path = route.getPath(this.prefix, routeName, id);
const path = route.getPath(this.prefix, routeName, this.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