Forum Discussion

SophieSue's avatar
SophieSue
Brass Contributor
Sep 13, 2019

Sharepoint People Search: Link to Delve "Profile Details" instead of "Work" page?

Per the title, I'm trying to modify my Sharepoint People Search so that when a user's name is clicked, they're taken to the full-blown Delve Profile page, rather than the "Work" page.

 

For example:

  • Current link:  https://nam.delve.office.com/?u=00000000-0000-0000-0000-000000000000&v=work

     

  • Desired link: https://nam.delve.office.com/?u=00000000-0000-0000-0000-000000000000&v=profiledetails

Our people search relies on the Item_Person.html template.  Related snippets include (as far as I can tell):

 

<!--#_ 
                    if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
                        var encodedPath = $urlHtmlEncode(ctx.CurrentItem.Path);
                        var has_pn = !$isEmptyString(ctx.CurrentItem.PreferredName);
                        var uEmail = ctx.CurrentItem.WorkEmail;
                        var uName = ctx.CurrentItem.PreferredName;                       
_#-->

 

<div id="NameField">
<!--#_ 
                                            var encodedName = (has_pn == true) ? $htmlEncode(ctx.CurrentItem.PreferredName) : $htmlEncode(ctx.CurrentItem.YomiDisplayName);
                                            var displayName = Srch.U.getSingleHHXMLNodeValue(hhProps, "preferredname");
                                            if ($isEmptyString(displayName)) { displayName = encodedName }
_#-->
                                            <div id="NameValue" class="ms-srch-ellipsis ms-textLarge">
                                                <a clicktype="Result" id="NameFieldLink" href="_#= encodedPath =#_" title="_#= encodedName =#_">_#= displayName =#_</a>
                                            </div>
                                        </div>

 

Any suggestions?  Thank you in advance!

No RepliesBe the first to reply

Resources