Router doesn't work on demo editor for the SIB website
Here we have the code to make a demo of the SIB website :
<!--body-->
<sib-router default-route="user-list" use-hash>
<sib-route name="user-list">User's list</sib-route>
<sib-route id-prefix="https://api.alpha.happy-dev.fr/users/" name="user-edit">Add a user</sib-route>
</sib-router>
<sib-display
id="user-list"
data-src="https://api.alpha.happy-dev.fr/users/"
fields="fullname(first_name, last_name), email"
next="user-edit"
></sib-display>
<sib-form
id="user-edit"
fields="fullname(first_name, last_name), email"
next="user-list"
bind-resources
></sib-form>
But it doesn't work!
In my console, I get this error :
NS_ERROR_FAILURE
It seems to have a problem on this function of the sib-router.js :
updateURL(route, id) {
const path = route.getPath(this.prefix, route.name, route.hasAttribute('use-id') ? id : '', route.name == this.defaultRoute);
const prefix = this.useHash ? '#' : '/';
history.pushState({}, route.name, prefix + path); // update current URL
}
Is there somebody to help me ?