Forum Discussion
Search Box Scope of Standard sites in SP Online Tenant
Hello All,
I am going to set home site for a SharePoint Online tenant in few days. I will be doing so using the below command
Set-PnPHomeSite -HomeSiteUrl "https://sharepoint.com"I need to confirm below mentioned query.
- After setting the home site what will be the behavior of the search bar of a standard SharePoint site, which is not a home site. I am referring to the sites other than home site in the same tenant.
Note: On Microsoft documentation it says the scope of the search bar in the home site will be extended to the whole tenant, which is fine. But the standard site (not the home site) search bar should not have scope of whole tenant.
Please share your thoughts on this and let me know what will be the scope of Standard site search bar.
Thanks in advance.
hi TarunHCC Setting a Home Site mainly affects the search experience of the Home Site itself, not all other SharePoint sites in the tenant.
So after configuring the Home Site using:
Set-PnPHomeSite -HomeSiteUrl "https://sharepoint.com"
the expected behavior is:
The Home Site search bar will search across the entire tenant (organization-wide search)
A standard SharePoint site (non-home site) will continue to use its normal search scope
So standard sites will still typically search:
The current site
Or the connected Hub scope (if the site is associated to a Hub)
They do not automatically become tenant-wide search sites just because a Home Site was configured.
So your understanding is correct only the Home Site gets the tenant-wide search experience by default.
3 Replies
- TarunHCCCopper Contributor
Hi Surya_Narayana,
Thanks a lot for the reply and clearing out the confusion.
If I can add a following query to this.
My main aim for this activity is to show the management how the Global Navigation looks. So, I'll turn on global navigation after this, will put some links for global navigation and then take some screen shots of the site with global navigation activated and then I will have to roll back. That will include setting global navigation off after taking screen shots.
Query: The site which I'll make home site is a Hub site right now and to make it a Home site I need to un hub it and then make it a home site. So when I'll be rolling it back then will I still have the option to attach that site to the Hub and get it in the state where it was earlier (Attached to Hub.)hi TarunHCC Yes, you should be able to roll it back without any major issue.
When you make a site a Home Site, SharePoint requires that it is not associated to another Hub, so temporarily unregistering/disconnecting it from the Hub is expected behavior.
After you finish your screenshots/demo:
- You can disable Global Navigation
- Remove the Home Site configuration
- Then re-associate the site back to the original Hub
The site can be attached back to the Hub again and return to its earlier state.
Just keep in mind:
- Hub navigation/theme inheritance may take a little time to reapply
- If the site was itself a Hub Site, make sure you note the original Hub settings/navigation before changing anything
- It’s a good idea to document the current configuration beforehand for easier rollback
So overall, your plan sounds fine for a temporary demo/testing activity.
hi TarunHCC Setting a Home Site mainly affects the search experience of the Home Site itself, not all other SharePoint sites in the tenant.
So after configuring the Home Site using:
Set-PnPHomeSite -HomeSiteUrl "https://sharepoint.com"
the expected behavior is:
The Home Site search bar will search across the entire tenant (organization-wide search)
A standard SharePoint site (non-home site) will continue to use its normal search scope
So standard sites will still typically search:
The current site
Or the connected Hub scope (if the site is associated to a Hub)
They do not automatically become tenant-wide search sites just because a Home Site was configured.
So your understanding is correct only the Home Site gets the tenant-wide search experience by default.