• Not Answered

Preview links with SXA

Hi:),

 

Let have example structure:

 

Normally when there are no SXA tenants exists and "New Sample Item" is published LinkBuilder.GetItemUrl() will return something like

"https://sc93sc.dev.local/en/New-tenant/New-site/Home/New-Sample-Item".

Problem is when SXA tenants are there link should be created referring to it.
In short, I'm getting something like above which returns 404 when I try to use it. To make it work link has to be
"https://sc93sc.dev.local/en/New-Sample-Item", so relative to tenant root, not sitecore root.

Is there a way to get that without custom LinkProvider?