image

 

There are lots of articles online that walk you through how to update the “SharePoint” text that appears in the upper left corner of the new SharePoint 2013 ribbon.  This post is going to build on that to update the text so that it becomes a dynamic link to the current site collection root.  The setting is updated at the web application level, but you may not want to always have people link back to the same link from all site collections.  The script has a token in the JavaScript that will always point to the root of whatever site collection you are currently in.  I’ll paste in the PowerShell script then talk through what is happening.

 

 

   1: $url = "javascript:window.location=location.protocol + ""//"" + window.location.host+_spPageContextInfo.siteServerRelativeUrl;"
   2: $webApp = Get-SPWebApplication "https://yourwebapplication"
   3: $webApp.SuiteBarBrandingElementHtml = "<div class=""ms-core-brandingText""><a href='$($url)' style='color:#ffffff; text-decoration:none;'>SharePoint</a></div>"
   4: $webApp.Update() 

Line 1 is creating the dynamic URL, the _spPageContextInfo.siteServerRelativeUrl is a token that SharePoint provides to get the root URL to the current site collection.

Line 2 needs to be updated with the path to the root of your web application.

You can update the “SharePoint” text on line 3 to anything you want.  This can be an image or just different text. 

For more information about C5 Insight or this blog entry, please Contact Us