history.push() not addind to goback length, so I can’t call history.goBack();

I’m having trouble implementing this.props.history.goBack() because for some reason, when I use this.props.history.push(“”), it’s not adding to the history goBack length (it stays 0); so this.props.history.goBack() doesn’t work.}

enter image description here