My use case is to configure a page with a route with the primary component. When that component loads, I need to get the URL value I set in the configuration. I have been looking at system.perspective.getProjectInfo() and system.perspective.getSessionInfo(). The issue with the .getProjectinfo() is that returns all the pages configurations, but I want to know which one is the current one. And the .getSessionInfo() returns all the active sessions in the gateway.
The URL I set in the Page Config was, let me say /test2. When I use either self.page.props.path or create a root.CUSTOM.url and create a binding to it with page.props.path, both scenarios are returning / instead of /test2.
Facing the same problem when trying to read the current page url. Always returns /. I believe this is dynamic and should return the url of the page which is being viewed in the browser.