Redirect site collection logo URL to root site collection

  1. From the Snippet Gallery, copy and paste the default SiteLogo code snippet into your master page into the appropriate place you want it to be displayed.

  2. In the SiteLogo code, search for SharePoint:SPSimpleSiteLink to find the relevant opening and closing tags. Now simply change the tag names toSharePoint:SPLinkButton instead.

  3. Then simply add the attribute NavigateUrl to this tag and set it’s value to “~sitecollection/”.

Example

Default snippet code

  1. <!--MS:<SharePoint:SPSimpleSiteLink runat="server" CssClass="ms-siteicon-a" ID="x7917ecc8c38d4bd69f58e338eab54c8c">--> ... <!--ME:</SharePoint:SPSimpleSiteLink>-->  
Should become this
  1. <!--MS:<SharePoint:SPLinkButton runat="server" NavigateUrl="~sitecollection/" CssClass="ms-siteicon-a" ID="x7917ecc8c38d4bd69f58e338eab54c8c">--> ... <!--ME:</SharePoint:SPLinkButton>-->  

 

Ebook Download
View all
Learn
View all
Rotary International is an international service organization whose stated purpose is to bring toget