Multiple domains show same content

Hi, I have set different domains for a site with Domain mapping plugin. for example:

http://mysite.com (primary)
http://myothersite1.com
http://myothersite2.com

that aim to the same website.
When I visit http://mysite.com there are no problems, every links aim to http://mysite.com for example http://mysite.com/mypage
But if I use another domain like http://myothersite1.com the homepage is correct but every link aim to the primary domain http://mysite.com

Is there a way to keep the the visited domain in the links inside the pages and not always the primary domain?

So when I visit the domain http://myothersite1.com I expect that every link inside is http://myothersite1.com/mypage

When I visit the domain http://myothersite2.com I expect that every link inside is http://myothersite2.com/mypage