Pages: clicking a button in a table fails, but adds another set of parameters to the button

Edit: The goal here is to have a button in a table, that opens another page using the id on the row as part of the url. Not having luck finding a way of doing that.

Trying to have a button call an endpoint, that just contains the following:

param($Inputobject)

New-PSUApiResponse -StatusCode 301 -Headers @{ Location = "https://google.com" }

the API works when typed into a browser. but when the button is clicked, another set of parameters is added the button configuration (I don’t add any parameters to the conf at all):

Seems like I’m also running into an issue where buttons only works with /post API’s, but redirects doesn’t work in posts.

Product: PowerShell Universal
Version: 2.10.1