fix extra slash added to urls when no base paths given