fixes to urls in pagination