Should use getBaseUrl instead of getRootUrl in startHistoryJs

goTo(pager.Href5.history.getState().url.replace(pager.Href5.history.getRootUrl(), ''));
should be
goTo(pager.Href5.history.getState().url.replace(pager.Href5.history.getBaseUrl(), ''));

Otherwise pager will not match the correct url when deployed under other context paths than the root

Same goes for History.Adapter.bind(window, 'statechange'...)