Skip to content

Commit

Permalink
Set the pagejs configuration in the correct order
Browse files Browse the repository at this point in the history
We need to set the `._page.base` path before calling the `_page`
routing function. This fixes the first page routing when a page prefix
is set.
  • Loading branch information
mquandalle committed Oct 3, 2015
1 parent 6c1a25d commit bbba4e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,11 @@ Router.prototype.initialize = function(options) {
// in unpredicatable manner. See #168
// this is the default behaviour and we need keep it like that
// we are doing a hack. see .path()
this._page.base(this._basePath);
this._page({
basePath: this._basePath,
decodeURLComponents: true,
hashbang: !!options.hashbang
});
this._page.base(this._basePath);

this._initialized = true;
};
Expand Down

0 comments on commit bbba4e3

Please sign in to comment.