# \[System\]Client/User/CurrentWindow not updating correctly when a new main window is opened

**URL:** <https://forum.inductiveautomation.com/t/system-client-user-currentwindow-not-updating-correctly-when-a-new-main-window-is-opened/111562>\
**Category:** Ignition\
**Created:** [October 17, 2025, 5:19pm UTC](https://forum.inductiveautomation.com/t/system-client-user-currentwindow-not-updating-correctly-when-a-new-main-window-is-opened/111562 "2025-10-17T17:19:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle\_K](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@Kyle\_K](https://forum.inductiveautomation.com/u/Kyle_K)\
**Post date:** [October 17, 2025, 5:19pm UTC](https://forum.inductiveautomation.com/t/system-client-user-currentwindow-not-updating-correctly-when-a-new-main-window-is-opened/111562/1 "2025-10-17T17:19:42Z")

</div>

I am trying to use the [[System]Client/User/CurrentWindow](https://forum.inductiveautomation.com/t/system-client-user-currentwindow/781) tag to make sure my tabbed navigation bars stay in sync. However, this tag does not consistently update to the window that is being shown on the screen. I will navigate to a new window and the tag won’t reliably update. It updates occasionally but not all the time and sometimes when opening a new window it will give me the value of the last window that was opened. What am I missing?

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [October 17, 2025, 5:30pm UTC](https://forum.inductiveautomation.com/t/system-client-user-currentwindow-not-updating-correctly-when-a-new-main-window-is-opened/111562/2 "2025-10-17T17:30:41Z")

</div>

Make sure you only navigate using `system.nav.swap*` and that any tabs controlling navigation or buttons with navigation actions have their navigation mode set to swap.

If you do navigation with anything other than these, the system tag will become out of sync, as you will have multiple 'main' windows open on top of each other, even though you appear to see only one 'main' window.

> **[system.nav.swapTo | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-nav/system-nav-swapTo)**
>
> Performs a window swap from the current main screen window to the window specified.

> **[system.nav.swapWindow | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-nav/system-nav-swapWindow)**
>
> Performs a window swap.

---

<div class="post-metadata">

**Author:** ![Kyle\_K](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@Kyle\_K](https://forum.inductiveautomation.com/u/Kyle_K)\
**Post date:** [October 17, 2025, 5:43pm UTC](https://forum.inductiveautomation.com/t/system-client-user-currentwindow-not-updating-correctly-when-a-new-main-window-is-opened/111562/3 "2025-10-17T17:43:49Z")

</div>

Ok, that would make sense then. I use the openWindow function in some of my scripts.
