Pages with variable in url: what Am i doing wrong?

I’ve got a page:

/CloudFlareDNSZone/:id

image

I can visit site.org/CloudFlareDNSZone/:id and see $id as a variable that is available

exchanging :id for anything just results in a page cannot be found.

/CloudFlareDNSZone/test, for example.

I feel like I’m doing the exact same thing as Adam do in the recent video about page variables.

Changed the variable to :ZoneID to see if the issue might be that $id is used elsewere in the page, no difference

I thought maybe it only works when the page is configured to point to an API or Script.
Makes no difference.

Its like the page doesnt know that :ZoneID is a variable, and is a literal part of the url.

Product: PowerShell Universal
Version: 2.10.1
hosting: IIS

I can reproduce this. Those demos were with 3.0 so I think there must be some unmerged fix in 2.10. I’ll open an issue and get this resolved for our next v2 build.

1 Like

Thank god I was loosing my mind. :joy: