Merge "Fix documentation of HistoryPager::lastLink() and make code more readable"