# In a perspective application, page.props.path inside the PageStartup script is always returning the base URL "/"

**URL:** <https://forum.inductiveautomation.com/t/in-a-perspective-application-page-props-path-inside-the-pagestartup-script-is-always-returning-the-base-url/83820>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 5, 2024, 12:15am UTC](https://forum.inductiveautomation.com/t/in-a-perspective-application-page-props-path-inside-the-pagestartup-script-is-always-returning-the-base-url/83820 "2024-01-05T00:15:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SriniCh](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@SriniCh](https://forum.inductiveautomation.com/u/SriniCh)\
**Post date:** [January 5, 2024, 12:15am UTC](https://forum.inductiveautomation.com/t/in-a-perspective-application-page-props-path-inside-the-pagestartup-script-is-always-returning-the-base-url/83820/1 "2024-01-05T00:15:35Z")

</div>

In a perspective application, page.props.path inside the PageStartup script is always returning the base URL "/".  
My application has 2 pages as shown.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/f/bffd4ae65f620daa2215ff71a3e369851e7748e8.png)

There is also a PageStartup Session Events script with some conditional logic based on page.props.path.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/4/e484548a93671926fdc3739dc872df6057cc6db3.png)

There are 2 button components with events script is configured to navigate between these 2 pages.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/a/5a1585a52733a6445a3cab505d3aa55b44092476.png)  
But in the browser session, when I am swapping between these 2 pages, the page.props.path always returns "/" . Only when I launch the page URL directly from the designer pages interfaces, I see the "/cncmetricsview" for the path.

Anyone experienced similar issue? Any clue on what is going wrong in this case?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 5, 2024, 2:20am UTC](https://forum.inductiveautomation.com/t/in-a-perspective-application-page-props-path-inside-the-pagestartup-script-is-always-returning-the-base-url/83820/2 "2024-01-05T02:20:41Z")

</div>

Are you sure that `page.props.path` is correct? I've never used it but when I click the `page` prompt above the editor area I'm presented with `page.path` without the `props`.

 ![Page.path](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/7/77edd51b9195e6b8939934e1ed1082912541eb0c.png)

---

<div class="post-metadata">

**Author:** ![SriniCh](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@SriniCh](https://forum.inductiveautomation.com/u/SriniCh)\
**Post date:** [January 5, 2024, 3:12am UTC](https://forum.inductiveautomation.com/t/in-a-perspective-application-page-props-path-inside-the-pagestartup-script-is-always-returning-the-base-url/83820/3 "2024-01-05T03:12:43Z")

</div>

Yes, the documentation recommends using props for accessing the page properties.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 5, 2024, 3:15am UTC](https://forum.inductiveautomation.com/t/in-a-perspective-application-page-props-path-inside-the-pagestartup-script-is-always-returning-the-base-url/83820/4 "2024-01-05T03:15:34Z")

</div>

Tip: hit the "Reply" button if you want a user to get inbox notification of your post or use the `@username` syntax in the post. (I happened to notice that there was a new post on the thread.)
