Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Redirect site collection logo URL to root site collection
WhatsApp
Rajkiran Swain
9y
5.6
k
0
0
25
Blog
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.
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.
Then simply add the attribute NavigateUrl to this tag and set it’s value to “~sitecollection/”.
Example
Default snippet code
<!--MS:<SharePoint:SPSimpleSiteLink runat=
"server"
CssClass=
"ms-siteicon-a"
ID=
"x7917ecc8c38d4bd69f58e338eab54c8c"
>--> ... <!--ME:</SharePoint:SPSimpleSiteLink>-->
Should become this
<!--MS:<SharePoint:SPLinkButton runat=
"server"
NavigateUrl=
"~sitecollection/"
CssClass=
"ms-siteicon-a"
ID=
"x7917ecc8c38d4bd69f58e338eab54c8c"
>--> ... <!--ME:</SharePoint:SPLinkButton>-->
Redirect site collection logo URL to root site collection
Up Next
How To Get All Site Collection Administrators From SharePoint Online Site Collections Using PnP PowerShell
Ebook Download
View all
Getting Started with SharePoint Framework Development using TypeScript, PnP JS, and React JS
Read by 4.9k people
Download Now!
Learn
View all
HCL Tech
HCL Tech
Membership not found