Fix pagination issue in history
Cleanup redundant remove_query_args()
Merge pull request #1607 from ghost1227/bugs/1572

Fix pagination issue in history