Hi, thanks for the reply.

Your solution is client side script, actually the URL is set in server side script, do you mean I need to set the URL again in agent workspace script?