Forum Discussion
Changing search bar on Comm site to search entire Tenant?
- Feb 03, 2018
Hi Deleted - unfortunately today you cannot change the search scope natively within the site setup. However, I saw some time back a similar question was posed and the workaround suggested was to create a SPFx search box client side web part to redirect from modern Site Page to classic search results page. Here is the article explaining how it's done: https://blog.velingeorgiev.com/sharepoint-framework-react-search-box-client-side-web-part
By no means is it the clean modern look and feel, but it may unblock you until the modern experience ships.
Its correct that you can not set the default scope to global for a teamsite/commsite currently. Please also see this thread that is discussing around the same issue: https://techcommunity.microsoft.com/t5/SharePoint/Scoping-of-search-in-team-site-communication-sites/m-p/210905#M19278
As a possible mitigation, instead of redirecting to the classic search you could redirect this url:<YOURTEAMSITE>/_layouts/15/search.aspx?q=<startquery>
This should take you to your upscoped search results page.