removeIndex re-triggers previous form's onShow?

I have a number of forms that I don’t want users to be able to return to using a history button so I remove the indexes from the history using history.removeIndex() as part of the form’s onHide method.

However, this triggers the previously visited form’s onShow method even if I don’t return to that form - i.e. the onShow method is triggered even when the form is not actually showing! Surely the form’s onShow method should only trigger if the form is actually visible or have I missed something in the way that history.removeIndex() works?

Servoy Developer
Version 3.5.10-build 524
Java version 14.3-b01-101 (Mac OS X)

looking at the code i dont see why onshow should be called on the form if you just call removeIndex.
There are no call to the forms that is removed or the previous one.

So create a case if you have a situation that does result in an onshow

Tested with a new test solution and this is re-produceable - case created: 290298