Incorrect site resolving when using Preview on multi-site solutions

  • Description

    In multi-site Sitecore solutions, the Preview functionality of the Content Editor or Page Editor may incorrectly resolve the site the previewed item belongs to.

    The context site may be resolved according to the value of the Preview.DefaultSite setting, or set to website as default.

  • To resolve the described issue, apply the following patch:

    1. Download an archive that corresponds to your Sitecore version:
    2. Place the Sitecore.Support.321270.321271.dll assembly from the extracted archive in the \bin folder of the website.
    3. Place the Sitecore.Support.321270.321271.config file from the extracted archive in the \App_Config\Include folder of the website.
    4. Perform the following changes in the \sitecore\shell\Applications\WebEdit\WebEditRibbon.aspx file
      • For Sitecore CMS 6.6.0 - Sitecore CMS 7.5, replace the following line
        <sc:CodeBeside runat="server" Type="Sitecore.Shell.Applications.WebEdit.WebEditRibbonForm, Sitecore.Client"/>
        with the following line
        <sc:CodeBeside runat="server" Type="Sitecore.Support.Shell.Applications.WebEdit.WebEditRibbonForm, Sitecore.Support.321270.321271"/>
      • For Sitecore CMS 8.0 and later, replace the following line
        <sc:CodeBeside runat="server" Type="Sitecore.Shell.Applications.WebEdit.WebEditRibbonForm, Sitecore.ExperienceEditor"/>
        with the following line
        <sc:CodeBeside runat="server" Type="Sitecore.Support.Shell.Applications.WebEdit.WebEditRibbonForm, Sitecore.Support.321270.321271"/>

    Note:
    You can use the Preview.ResolveSite setting in the \Website\App_Config\Include\Sitecore.Support.321270.321271.config file for disabling/enabling the patch.

Applies to:

CMS 6.0 - 8.0

CMS 8.1 Initial Release

April 14, 2015
November 02, 2016

Reference number:

321270, 321271

Keywords: 

  • CMS
  • ,
  • Experience Editor