Per an example of page and form navigation, you can use the javascript location object to replace the url. However, in my environment, I get illegal reference to location when I click OK. What is wrong/missing from my environment. The example can be deployed and the sample works, but I myself cannot create a button using location.
Do you have JS Security "off" in your environment?
I have enabled the setting and set to false. I have just read that I need to restart the server, so this may be my issue. I restarted the HTTP task, but not the server. I'll restart the server sometime and try again.
Setting JS Security to off and restarting the server per documentation fixed the issue.