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

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

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

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


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?

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.

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

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.)