Using the HTTP_HOST server variable is something I hadn’t thought of. I just wrote the full URL in.
It would be lovely if a similar SC action could be created which can take a local path instead of a URL as that would increase security. I may submit that as a feature request.