There's a "Site Collection Search Results Page" field which is used for configuring the search results page used for contextual searches (such as "This Site"). It can be found by doing the following:
The default value is
/_layouts/osssearchresults.aspx
How can I retrieve and change this value through the SharePoint object model?
The setting is stored in:
site.RootWeb.AllProperties["SRCH_TRAGET_RESULTS_PAGE"]
If doesn't exist or is null then '/_layouts/osssearchresults.aspx' is used
The Search Center URL is in
site.RootWeb.AllProperties["SRCH_ENH_FTR_URL"]
And the drop down mode in
site.RootWeb.AllProperties["SRCH_SITE_DROPDOWN_MODE"]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With