The easiest way to use the HTML5 History API is to include History.js.
Five lines of code is all it takes after that!
// use HTML5 history pager.useHTML5history = true; // use History instead of history pager.Href5.history = History; // these two lines are as normal pager.extendWithPage(viewModel); ko.applyBindings(viewModel); // start pager.js pager.startHistoryJs();