does not fail if blat_config is not defined
fixed negative pagination and changed URLs