normalize fragment when hashChange: false in navigate

This commit is contained in:
Andrew Terris
2012-04-09 21:14:02 -05:00
parent 2cab3a346c
commit b9021b64be

View File

@@ -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);
},