Fix urls to take base_url into account