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