Fixed method in getBaseUrl not returning correct path ( was not parameterized)