Fixes pagination urls