Are you using vision or perspective? For Vision you can use the system tag
Perspective is a different story. I’ve solved this by calling a function on startup of all my main views which writes to a session prop. It would be nice if there was a session prop for this already, but at the moment we’re out of luck.
Edit: I thought you might have been able to get this from the
system.perspective.getSessionInfo() function, however the pageIds that are returned are hexadecimal ids rather than actual view paths, so this isn’t useable for this. Interestingly though, the pageIds are the names of the Views for the Designer session, but they don’t include the path to the View, so even that’s not very useful for this.