Multiple URIs for the same app page

Product: PowerShell Universal
Version: 5.0.14

A fun one today!

We’re faced with an interesting conundrum - we now need to expose one of the pages of our apps in a different way than the rest of the app. We are able to handle that portion, supposing that we have an additional page added with that URI.

If possible, I’d like to avoid having to maintain two copies of the same page file (and yes, it is a file specifically - not page code held within the app itself). I’m worried that if I make a new page referencing the same local file, it will overwrite the existing file and all its data. We have backups of course, so we wouldn’t lose it per say, but it would be quite annoying to have to constantly update the page content with our users in and out of the application. What’s the best way to go about this?

Thank you!
:wavy_dash:ZG

I was able to get this working by defining the page code within the app as a [scriptblock] but we lose the organization of code that we had with pages, which is not a necessity but rather a nicety. It also bloats the main code of the app. So, this isn’t an urgent-help-needed sort of request, rather just me putting it out into the universe for some more creative folks to try and take a stab at (:

As usual I’m dumb. The docs describe this exactly.