code: function PathnameEnvironment() {
    this.onPopState = this.onPopState.bind(this);
    this.useHistoryApi = !!(window.history &&
                            window.history.pushState &&
                            window.history.replaceState);
    Environment.call(this);
  }
docs: Routing environment which routes by `location.pathname`.