I am somewhat confused regarding the factors that cause cosmological redshift. This wiki states that the amound of cosmological redshift coming from let’s say, a star, is calculated by
$$z=\frac{H_0 D}{c}$$
Since $H_0D$ simply equals the recession speed $v$ of the star, I’d deduce that the amount of redshift depends solely on the star's recession speed the moment the light left it. This would be an analogue to the Doppler redshift.
However, some sources like this one claims that the longer light has been traveling, the longer it has been exposed to the expansion of the universe making the redshift larger.
This statement makes me deduce that a portion of ligth that already has left the star, can be even more redshifted because of the space expansion during its travel, being it a constant or an accelerated expansion.
If this is true, why does the redshift formula then solely rely on the recession speed?