We have a custom sales order Suitelet in our environment where a user hits a button and they have the ability to filter and select a shipping address from a customer record that has many, many addresses. Works great.
When doing testing in sandbox, though, if you click the button to start the Suitelet, it bounces you over to log into production to launch the Suitelet there. So you can't do any testing with this Suitelet in sandbox, really.
I checked the path and it refers to the script as it exists in the sandbox file cabinet. So I'm not sure why it automatically tries to go to production.
Is there some code or configuration change that will correctly launch the sandbox version of this script?