1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

search-commercial: fix endpoint typo

* Fixes the search endpoint typo (comma)
* Fixes the label field name

Signed-off-by: Jiri Fiala <jfiala@redhat.com>
This commit is contained in:
Jiří Fiala
2019-11-18 09:15:51 +01:00
committed by openshift-cherrypick-robot
parent 324732e918
commit cd3344be59
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ function hcsearch(searchParams) {
// the "searchprovider" is to return a JSON response in the expected format
var searchprovider = "https://search.help.openshift.com/json";
var searchReq = { "q" : searchParams.q + searchParams.urlFilter,
"l" : searchParams.label,
"fields.label" : searchParams.label,
"si" : searchParams.si } // q = query, l = label
hcMoreBtn.hide();

View File

@@ -200,9 +200,9 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
var hcSearchResult = $("#hc-search-results");
// the "searchprovider" is to return a JSON response in the expected format
var searchprovider = "https://search,help.openshift.com/json";
var searchprovider = "https://search.help.openshift.com/json";
var searchReq = { "q" : searchParams.q + searchParams.urlFilter,
"l" : searchParams.label,
"fields.label" : searchParams.label,
"si" : searchParams.si } // q = query, l = label
hcMoreBtn.hide();