The function mainUrl must be used with a prefix