Commit 0d73d7ce authored by Sylvain Le Bon's avatar Sylvain Le Bon

bugfix: remove hash from current URL

parent 3914e373
......@@ -48,7 +48,7 @@
style="color:red"
bind-resources
loader-id="loader"
data-src="http://localhost:8000/members/3/"
data-src="http://localhost:8000/members/Alexandre/"
data-fields="firstname, author, text, assignees"
value-text="Ceci est un détail"
widget-assignees="sib-display-list"
......@@ -58,7 +58,7 @@
style="color:blue"
bind-resources
loader-id="loader"
data-src="http://localhost:8000/members/3/"
data-src="http://localhost:8000/members/Alexandre/"
data-fields="firstname, author, text, assignees"
value-text="Ceci est un détail"
widget-assignees="sib-display-list"
......@@ -83,7 +83,7 @@
<sib-form id="create" data-src="http://localhost:8000/members/"></sib-form>
<sib-form
id="edit"
data-src="http://localhost:8000/members/3/"
data-src="http://localhost:8000/members/Alexandre/"
next="list"
widget-done="sib-form-checkbox"
label-name="What's your name, honey?"
......
......@@ -81,7 +81,7 @@
return this.getAttribute('default-route') || '';
}
get currentURL() {
let url = (this.useHash ? location.hash : location.pathname.slice(1));
let url = (this.useHash ? location.hash : location.pathname).slice(1);
if(url.startsWith(this.prefix))
url = url.slice(this.prefix.length);
if(url.startsWith('/'))
......
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