Fix Pagination on Forum Topics without Pretty URLs. Also, preserve query strings on paginate.