# System.perspective.navigate doesn't work on session custom property tag change script

**URL:** <https://forum.inductiveautomation.com/t/system-perspective-navigate-doesnt-work-on-session-custom-property-tag-change-script/78348>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [August 24, 2023, 5:34pm UTC](https://forum.inductiveautomation.com/t/system-perspective-navigate-doesnt-work-on-session-custom-property-tag-change-script/78348 "2023-08-24T17:34:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [August 24, 2023, 6:25pm UTC](https://forum.inductiveautomation.com/t/system-perspective-navigate-doesnt-work-on-session-custom-property-tag-change-script/78348/2 "2023-08-24T18:25:31Z")

</div>

You're getting caught up in a common Designer vs. Session context issue.

In the Designer, there are no pages; the concept doesn't exist. But some pieces are dependent on a reference to `pageId` not being `null`, so we provide the View name as a placeholder within the Designer. IN a running Session, that `pageId` value is actually a unique value generated as each tab is opened.

Now, the _Session_ has no idea which page of the potentially multiple you could have open that you want to navigate, so you'll have to manage that yourself.

- Loop over every page of the session by making use of `system.perspective.getSessionInfo()` and filter the results based on the `sessionId` of this Session.

```auto
if currentValue.value > 2:
    all_sessions = system.perspective.getSessionInfo()
    for session in all_sessions:
        if session.id == self.session.props.id:
            page_ids = session.pageIds
            for page_id in page_ids:
                system.perspective.navigate(page="/", sessionId=session.id, pageId=page_id)

```

You might also be able to do something like this:

```auto
if currentValue.value > 2:
    for page in self.pages:
        system.perspective.navigate(page="/", sessionId=self.id, pageId=page.id)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-perspective-navigate-doesnt-work-on-session-custom-property-tag-change-script/78348)._
