I am having an issue in Sitecore 9.0.2 that cross sites links are not resolving properly. The link is resolved as a context site link and when I click on that link it gives me 404 so anyone has any idea on this?
I have two sites -
- corporate
- corporate.jp.local
When I linked any item(Home/test/test1) of Site 1(corporate) in Site 2(corporate.jp.local). It generates the URL with the second site.
Example: corporate.jp.local/test/test1
Already tried below solutions but they've not worked:
- Cross-site links not resolving correctly in RTE fields on multi-site environment
- Sitecore multisite cross links not resolved with proper hostname
Sitedefinition structure
<site name="japan" patch:before="site[@name='website']"
hostName="corporate.jp.local"
targetHostName="corporate.jp.local"
language="ja-JP"
enableFallback="true"
virtualFolder="/"
physicalFolder="/"
rootPath="/sitecore/content/jp"
startItem="/Home"
database="web"
domain="extranet"
allowDebug="true"
cacheHtml="true"
htmlCacheSize="10MB"
enablePreview="true"
enableWebEdit="true"
enableDebugger="true"
disableClientData="false" />
<site name="English" patch:before="site[@name='website']"
hostName="corporate"
targetHostName="corporate"
language="en"
virtualFolder="/"
physicalFolder="/"
rootPath="/sitecore/content/en"
startItem="/home"
database="web"
domain="extranet"
allowDebug="true"
cacheHtml="true"
htmlCacheSize="100MB"
enablePreview="true"
enableWebEdit="true"
enableDebugger="true"
disableClientData="false" />
Tree structure
japan
- Home
- test
- test1
- test
test
- Home
- test
- test1
- test
targetHostName
in your site definitions?