...
If using Sitefinity CMS the Search box configuration could be updated by adding JSON object with the options the Data filed of Hawksearch HawksearchBox widget designer Advanced options. Example:
Code Block {"_searchBoxConfig":{"reloadOnEmpty":false,"redirectOnEmpty":false,"redirectToCurrentPage":false}
updating the config:
Code Block const hawkConfigconfig = { ... searchBoxConfig: { reloadOnEmpty: true, redirectOnEmpty: true, redirectToCurrentPage: true }, ... }; var widget = HawksearchVue.createWidget(component, { config: config}); HawksearchVue.initialSearch(widget);
...