Hi,
What if you messed around with the window on before unload event and then use the client api to reload the page. There is a function called
mx.reloadWithState()
it was mentioned in this question:
https://forum.mendix.com/link/questions/91821
Then you can use the html snippet to add something like this to the page (haven’t tested this):
window.onbeforeunload = function(event)
{
mx.reloadwithstate();
};
Try to catch the reload event and trigger your own reload.
Hope this helps!
You might consider associating an np helper entity to the session entity, storing the desired values on the helper, and then retrieve the helper as needed via the session.