"Sample title" is shown when editing SXA Storefront pages in Experience Editor

  • Description

    When opening any SXA Storefront page in Experience Editor its title is hardcoded to "Sample title".
  • To fix this issue, replace the code below in Commerce/metadata/metadata.cshtml

    @if (Sitecore.Context.PageMode.IsExperienceEditor)
    {
      var link = @metadataManager.GetServerUrl() + "/category/sample_category";
      <link rel='canonical' href='@link' />
      <title>Sample title</title>
    }
    else
    {
      @metadataManager.GetTags()
    }

    with

    @metadataManager.GetTags()

Applies to:

Sitecore Experience Commerce 9.0 Update-3

December 31, 2018
December 31, 2018

Reference number:

277676