Forum Discussion

ChrisInhoff's avatar
ChrisInhoff
Copper Contributor
Jul 10, 2024
Solved

Use Org Intranet Site Homepage for SharePoint Homepage for Search Functionality

Hello,

 

My organization created their SharePoint Intranet site before I joined them. It seems that, because the topmost Search field only searches the current site, that they created a link on the main page to the homepage for SharePoint, where a full search can be properly done across the instance.

 

It seems that some people are confused by this and do not know to switch to the homepage before searching.

 

Can I just make my org's Intranet site main page the Homepage for SharePoint and eliminate the need for a quick link to the homepage since it would already be there?

 

I am concerned that something will break somewhere down the line for some reason (like navigation or some quick links). I feel like nothing should break, because all I am doing is swapping in a new homepage URL. The link to my main Intranet site should not change because it is now the homepage, correct?

 

Just for clarity, I am not worried about breaking any links to or from the current homepage, as I do not think anyone uses it unless they have selected the global search item I mentioned earlier.

 

I have found the below PowerShell code for doing this:

 

# Connect to SharePoint Online
Connect-SPOService -Url https://yourtenant-admin.sharepoint.com

# Set the desired site as the Home Site
Set-SPOHomeSite -HomeSiteUrl "https://yourtenant.sharepoint.com/sites/intranet"

 

Would this do what I am asking?

  • ChrisInhoff 

    Just providing an update on this.

    I had someone else look at this, and they have come up with a better solution.

    Instead of changing the Homepage site URL, they have suggested altering the Search functionality of the site in question include the entire tenant in its scope.

    They suggested the below code to enable full tenant search from the site that is NOT my SharePoint homepage:

    Connect-PnPOnline -Url https://yoursite.sharepoint.com/sites/yoursite -UseWebLogin
    Set-PnPSearchSettings -Scope Web -SearchScope Tenant

4 Replies

Resources