# How to prevent a window from participating in the back navigation

**URL:** <https://forum.inductiveautomation.com/t/how-to-prevent-a-window-from-participating-in-the-back-navigation/14433>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [May 31, 2017, 11:24pm UTC](https://forum.inductiveautomation.com/t/how-to-prevent-a-window-from-participating-in-the-back-navigation/14433 "2017-05-31T23:24:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [June 5, 2017, 7:48pm UTC](https://forum.inductiveautomation.com/t/how-to-prevent-a-window-from-participating-in-the-back-navigation/14433/2 "2017-06-05T19:48:53Z")

</div>

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:

```auto
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:

> [@PyObject Documentation](http://forum.inductiveautomation.com/t/pyobject-documentation/12766):
>
> Dose anyone know where I can find documentation for python objects returned from functions? For example system.gui.getWindow() returns an object of type PyObject according to the [documentation](https://docs.inductiveautomation.com/display/DOC79/system.gui.getWindow) but I can’t find any information on the object that is returned. At the bottom of [this page](https://support.inductiveautomation.com/usermanuals/ignition/index.html?working_with_components.htm) it shows that the window object has some functions to set size and location. What else does it have? How can I find out?

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!

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-prevent-a-window-from-participating-in-the-back-navigation/14433)._
