locked
Update Welcome control My Settings redirection problem RRS feed

  • Question

  • Hi All,

    I was trying to update the redirection of My Settings in the Welcome control. But no luck.

    Can you give me sample trick? or Ideas. Thanks.

    I tried to put this inside the master page but still can't get to work.

    <script type="text/javascript">


    _spBodyOnLoadFunctionNames.push('fixMySiteMenuLinks');

    //customize the url of the my site and my profile
    function fixMySiteMenuLinks() {
    try {
    var objmysite = document.getElementById('ID_MySiteMenu'); //url of my site
    var objmyprof = document.getElementById('ID_MySiteLinksMenu'); //url of my profile
    var objmyinfo = document.getElementById('zz11_ID_PersonalInformation');
    objmysite.setAttribute('onmenuclick', 'STSNavigate2(event,'www.google.com')'); //TODO: change to proper url here
    objmyprof.setAttribute('onmenuclick', 'STSNavigate2(event,'www.google.com')'); //TODO: change to proper url here
    objmyinfo.setAttribute('onmenuclick', 'STSNavigate2(event,'www.google.com')'); //TODO: change to proper url here
    } catch (err)
    {
    }
    }


    </script>


    ®©™½¼

    Tuesday, March 27, 2012 8:38 AM

Answers

  • Hi, if you are able to find the url of the menulinks then just update the url attribute for the DOM element

    $("#ID_MySiteMenu").attr("href","www.google.com");


    Anil

    • Marked as answer by jwill92 Monday, April 2, 2012 10:31 AM
    Tuesday, March 27, 2012 9:12 AM