This topic has been a pain through most versions of SharePoint to date.
How to get consistent navigation for multiple URL’s, creating relative links, etc.
This link on updating the database to remove absolute URL details is one I know I will need to refer back to.