Monday

SharePoint BreadCrumbs issue when you change default page

Most of the people ask me the same question, So, I though of writing up for you all.

When you build a new page layout and change it to default page, you see that it shows pages-default.aspx page in the breadcrumd and anybody can easily go to pages. In order to avoid that just replace the following lines in the master page using designer.

Exisiting Property:
asp:SiteMapPath id="ContentMap" SiteMapProvider="SPContentMapProvider" SkipLinkText="" NodeStyle-CssClass="ms-sitemapdirectional" runat="server"/

Replace with the following Property:
asp:SiteMapPath ID="siteMapPath" SiteMapProvider="CurrentNavSiteMapProviderNoEncode" RenderCurrentNodeAsLink="false" SkipLinkText="" NodeStyle-CssClass="ms-sitemapdirectional" Runat="server"/

I hope it will solve breadcrumb issues.