Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Customizing SharePoint's SuiteBar Links

$
0
0

Hello:

I need to modify the address for "OneDrive" link. I tried delegate control approach but that does not seem to be working. Any pointers?

I tried below delegate control code to no avail:

_spBodyOnLoadFunctionNames.push("overrideSuiteBarLinks");
function overrideSuiteBarLinks() {    
    $("a[id$='ShellDocuments']").each(function () {
        var currLink = $(this);
        currLink.attr("href", "www.abc.com");
        console.log("done: " + currLink.attr("href"));
    });
}

I can see the log statement printed to the console with correct address but when the page is rendered the address reverts to OneDrive's out-of-the-box address.

Thanks!


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>