Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: The Autosuggest endpoint field in the settings accepts non-URL values #3927

Open
1 task done
burhandodhy opened this issue Jun 6, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working
Milestone

Comments

@burhandodhy
Copy link
Contributor

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

  1. Go to ElasticPress -> Autosuggest settings
  2. 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

  • I agree to follow this project's Code of Conduct
@burhandodhy burhandodhy added the bug Something isn't working label Jun 6, 2024
@felipeelia felipeelia added this to the 5.2.0 milestone Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants