How to prevent a window from participating in the back navigation

Fledder,

I have never tried using the back / forward navigation, but after looking at the documentation on the back script function (system.nav.goBack()) I see that it returns a PyObject of the window that it is going to.

I think if I was doing this I would try comparing the PyObject to something, and if it == the redirect window, then I would run the back function again. Something like this:

window = system.nav.goBack()
if window == redirect:
    system.nav.goBack()

I'm not sure how to get the redirect object to compare it to. You might try starting here for that part:

I think that you may find that the scripting in the redirect window gives you another hurdle for this solution. If so than maybe try to delay the redirect window script very briefly. (Try using system.util.invokeLater()).

I hope this helps, and I would be glad to know how it turns out!