How does WeChat Mini Programs prevent navigateTo from jumping more than 10 floors?

I have a business scenario
page An is a first-level page, page B is a detailed page of page A, in which there is a button to add details to enter the C form page, fill out the form and click to successfully enter D. Confirm page D click the button inside to return to detail page B and continue to add.

A -> B -> C -> D ->  B -> C -> D  B -> C -> D -> B ...

this infinite addition will always exceed 10 layers.
at first, the A _ Magi B ~ J C page jumps to navigateTo,D using redirectTo, but it will still exceed it.
then page D uses reLaunch, but clears other pages, and page B cannot return A. is there any good way for
to solve this problem?


how about this?

wx.navigateBack({
  delta: 1
})
Menu