mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 04:48:00 +03:00
overzealous slash reduction
This commit is contained in:
parent
c6ef8e1319
commit
0708e2dd57
@ -106,7 +106,7 @@ module.exports = query {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
if href?[0] isnt "/"
|
||||
href = (document.location.pathname.replace /\/?[^\/]*$/, '') + href
|
||||
href = (document.location.pathname.replace /[^\/]*$/, '') + href
|
||||
_this.goTo window.tree.fragpath href
|
||||
if id
|
||||
window.location.hash = id
|
||||
|
@ -233,7 +233,7 @@ module.exports = query({
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
if ((href != null ? href[0] : void 0) !== "/") {
|
||||
href = (document.location.pathname.replace(/\/?[^\/]*$/, '')) + href;
|
||||
href = (document.location.pathname.replace(/[^\/]*$/, '')) + href;
|
||||
}
|
||||
_this.goTo(window.tree.fragpath(href));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user