mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
normalize fragment when hashChange: false in navigate
This commit is contained in:
@@ -1119,7 +1119,9 @@
|
||||
// If you've told us that you explicitly don't want fallback hashchange-
|
||||
// based history, then `navigate` becomes a page refresh.
|
||||
} else {
|
||||
window.location.assign(this.options.root + fragment);
|
||||
if (frag.indexOf(this.options.root) != 0) frag = this.options.root + frag;
|
||||
this.fragment = frag;
|
||||
window.location.assign(frag);
|
||||
}
|
||||
if (options.trigger) this.loadUrl(fragment);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user