code: function(fragment, forcePushState) {
        if (fragment == null) {
          if (this._hasPushState || forcePushState) {
            fragment = window.location.pathname;
            var search = window.location.search;
            if (search) fragment += search;
            if (fragment.indexOf(this.options.root) == 0) fragment = fragment.substr(this.options.root.length);
          } else {
            fragment = window.location.hash;
          }
        }
        return decodeURIComponent(fragment.replace(hashStrip, ''));
      }
docs: Get the cross-browser normalized URL fragment, either from the URL, the hash, or the override.