in your site settings, make sure that you have the correct web address set in the Local Info section for your remote site,
the HTTP address setting in the site definition will effect how the links are created, if this is not set correctly for your remote site, the links wont be generated correctly,