Adding a Top-Level Link to a Search Center Breadcrumb in SharePoint 2010

Image

March 1, 2023

In SharePoint 2010, the Search Center does not provide a link back to the top-level site in the breadcrumb. This is a hindrance for users to find their way back to the top-level site.

2012-05-14_1529_thumb.png

Having a link back to the home page of the top-level site would be especially useful in scenarios like Intranet sites. A link could be provided in the breadcrumb back to the Intranet home page. Here is a quick example to add a link to an Intranet home page on a Search Center:

  • Open the root site in the site collection in SharePoint Designer.
  • Click Master Pages in the Site Objects left-navigation.
  • Create a copy of the minimal.master Master Page, and give it an appropriate file name (ie, Intranet_minimal.master). This will be used to create a customized version of the Master Page for the Search Center.
  • Open the new Master Page in SharePoint Designer.
  • Find the following line:

<SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitle" CssClass="s4-mini-h1-a">

  • Before that line, add the following to the page:

<!-- Custom Link to Portal -->
<SharePoint:SPLinkButton runat="server" NavigateUrl="~sitecollection/" id="rootSiteBreadcrumbLink" CssClass="s4-mini-h1-a">
ÂÂÂ Intranet Home
</SharePoint:SPLinkButton>

<SharePoint:ClusteredDirectionalImage
ÂÂÂ runat="server"
ÂÂÂ ImageUrl="/_layouts/images/fgimg.png"
ÂÂÂ LTROffsetX=0
ÂÂÂ RTLOffsetX=0
ÂÂÂ LTROffsetY=607
ÂÂÂ RTLOffsetY=618
ÂÂÂ LTRWidth=11
ÂÂÂ LTRHeight=11
ÂÂÂ RTLWidth=11
ÂÂÂ RTLHeight=11
ÂÂÂ AlternateText=":"
ÂÂÂ ClassName="s4-mini-titlesep"/>
<!-- End Custom Link to Portal –->

  • The specific section of the Master Page should now look like the following:
2012-05-14_1542_thumb.png
  • Save the custom Master Page.
  • Apply the custom Master Page as the default for the Search Center site.
  • If you refresh your Search Center site, you should now see a link to the Intranet Home.
2012-05-14_1544_thumb.png

Caveat:

While the link to the top-level site is dynamic (~sitecollection/), this example hard-codes "Intranet Home" in the Search Center Master Page. If the Intranet is renamed, the Master Page would need to be updated to reflect the new name.