The Autosuggest endpoint field in the settings accepts non-URL values. When passing the value to JS, the plugin tries to escape the value, resulting in an empty string. Consequently, Autosuggest doesn't work and no error is thrown.
Steps to Reproduce
Go to ElasticPress -> Autosuggest settings
Enter invalid URL in the ENDPOINT URL
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress and ElasticPress information
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Describe the bug
The Autosuggest endpoint field in the settings accepts non-URL values. When passing the value to JS, the plugin tries to escape the value, resulting in an empty string. Consequently, Autosuggest doesn't work and no error is thrown.
Steps to Reproduce
ENDPOINT URL
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress and ElasticPress information
No response
Code of Conduct