Skip to content

Commit

Permalink
Merge pull request jashkenas#1185 from aterris/fragment
Browse files Browse the repository at this point in the history
Use window.location.pathname as the fragment when _wantsHashChange == false
  • Loading branch information
jashkenas committed Apr 6, 2012
2 parents f60e485 + 7596947 commit fb49233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fb49233

Please sign in to comment.