use pathname as fragment when hashChange: false

This commit is contained in:
Andrew Terris
2012-04-04 21:44:18 -05:00
parent 091b3e5a80
commit 7596947b06

View File

@@ -978,7 +978,7 @@
// the hash, or the override.
getFragment: function(fragment, forcePushState) {
if (fragment == null) {
if (this._hasPushState || forcePushState) {
if (this._hasPushState || !this._wantsHashChange || forcePushState) {
fragment = window.location.pathname;
var search = window.location.search;
if (search) fragment += search;