RE: Formatting the domain of a Center Link to an internal NS resource for compatibility between Sandbox and Production environments
I wonder if you could do this with a suit let page.
You would use the internal URL to the suitlet for the center link.
in the suitelet you would get the runtime.envType and redirect the url to correct pge
var runtimeEnv = JSON.stringify(runtime.envType);
if(runtimeEnv==="\"PRODUCTION\"") add redirect page1 .... else if(runtimeEnv==="\"SANDBOX\"") add redirect page2