Handle directory URLs with a nil path