xStatic - different domains

I have a project involving two web servers.

https://edit.xxxx.se (CMS-server)
https://xxxx.se (server with static HTML-pages generated by xStatic)

The editors are doing their work on the CMS-server and when they publish something xStatic is generating static HTML-pages and transfer the pages to the other server via FTP.

In the footer of the pages, among other things, I use a multi URL picker so that the editors can add links. When the static pages are generated these links goes to https://edit.xxxx.se instead of https://xxxx.se.

I can understand why this happens, but I guess there should be a solution.

Any idéas?