[Bugfix] getUrl creates malformed requests if no path is given