Skip to content

Commit

Permalink
DOP-4105: Turn off contextual search enabled by DOP-3290 (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar authored Nov 3, 2023
1 parent dbbb076 commit 3632001
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@ const Header = ({ sidenav, eol, template }) => {
* the project name to the true search manifest name in cases where the
* project name is NOT the search manifest name.
*/

if (searchPropertyMapping.projectToSearchMap && project in searchPropertyMapping.projectToSearchMap) {
searchManifestName = searchPropertyMapping.projectToSearchMap[project];
}

const projectManifest = `${searchManifestName}-${branch}`;

if (projectManifest in searchPropertyMapping) {
searchParams.push({ param: 'searchProperty', value: projectManifest });
searchParams.push({ param: 'docsProperty', value: projectManifest });
}

return (
Expand Down

0 comments on commit 3632001

Please sign in to comment.