Affects Version/s: 7.0.0 DXP SP6, 7.0.0 DXP FP39, 7.0.X, Master
On Liferay environment A
1.) Create a site "Site1" using site URL "/site1"
2.) In site "Site1" create a public page called "Page1" using page friendly url "/page1"
3.) Create a site "Site2" using site Friendly URL "/site2"
4.) Within this site create a basic web content called "Page2" (add some letter to the html filed and make it a hyperlink with /web/site1/page1) and place it on a private page
5.) Export private pages of site "Site2" including its web content and export public pages of the site "Site1".
On Liferay environment B
1.) Create empty sites "Site1" and "Site2" as described for environment A using the site urls as mentioned
2.) In site "Site1" import LAR file create in environment A
3.) In site "Site2" import LAR file created in environment A
Result: Check contents of web content article "Page2" and notice that included hyperlink "/web/site1/page1" got changed into "web/site2/page1"
7.0x @ commit (9643fdb87605e3c59cbafeb71326547d39ec36cd) reproduced
master @ commit (9f2cbbd236513332dca1ef619bca3dec6616a4c1) reproduced
After a quick investigation we found out that the link in the LAR file of Site2 contains the UUID of Site1 in Environment A. This UUID cannot be found in Environment B, so it falls back to the name of the currently imported site (Site2).