Fixes url for ajax pagination.