Fix compiler warnings for getUrl