none
People search not going to profile.aspx RRS feed

  • Question

  • Good day everyone,

    I have the people search going to a search center site, but for some reason it doesn't go to the profile.aspx page it goes to a generic "../sites/search/pages/default.aspx" page instead of "../sites/search/Pages/Profile.aspx". This is causing the results not to be returned.  However if I browse to the profile.aspx page it works fine.  I have looked on all the settings for the search to see if there are any settings that need to be tweaked and haven't found anything.  Any suggestions are appreciated!

    Thank you,
    Hyde

    There is nothing more difficult to take in hand, more perilous to conduct or more uncertain in its success than to take the lead in the introduction of a new order of things.

    Tuesday, August 13, 2019 4:09 PM

Answers

  • Hi everyone,

    I found the fix:

    1. edit the page
    2. open the "people search core results" web part
    3. uncheck the box for "Use location visualization"
    4. click the "xsl editor" button
    5. in the section of code:

           <xsl:if test="$haspn">
              <a href="../Pages/Profile.aspx?accountname={$accountname}">
                <xsl:apply-templates select="hithighlightedproperties/preferredname" />
              </a>
            </xsl:if>

    Remove the if statement so it looks like this:

              <a href="../Pages/Profile.aspx?accountname={$accountname}">
                <xsl:apply-templates select="hithighlightedproperties/preferredname" />
              </a>

    6. save the web part
    7. publish the page

    Thanks,
    Hyde



    There is nothing more difficult to take in hand, more perilous to conduct or more uncertain in its success than to take the lead in the introduction of a new order of things.

    • Marked as answer by Hyde_311 Tuesday, August 13, 2019 4:46 PM
    Tuesday, August 13, 2019 4:46 PM

All replies

  • Hi everyone,

    I found the fix:

    1. edit the page
    2. open the "people search core results" web part
    3. uncheck the box for "Use location visualization"
    4. click the "xsl editor" button
    5. in the section of code:

           <xsl:if test="$haspn">
              <a href="../Pages/Profile.aspx?accountname={$accountname}">
                <xsl:apply-templates select="hithighlightedproperties/preferredname" />
              </a>
            </xsl:if>

    Remove the if statement so it looks like this:

              <a href="../Pages/Profile.aspx?accountname={$accountname}">
                <xsl:apply-templates select="hithighlightedproperties/preferredname" />
              </a>

    6. save the web part
    7. publish the page

    Thanks,
    Hyde



    There is nothing more difficult to take in hand, more perilous to conduct or more uncertain in its success than to take the lead in the introduction of a new order of things.

    • Marked as answer by Hyde_311 Tuesday, August 13, 2019 4:46 PM
    Tuesday, August 13, 2019 4:46 PM
  • Hi Hyde,

    I'm happy that you solved this. Thanks for your sharing.

    Best Regards,

    Michael Han


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Wednesday, August 14, 2019 1:48 AM