mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
use pathname as fragment when hashChange: false
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user