pagination fix for empty baseurl