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

Fix: Clicking on the Facet Term redirect to Homepage #3032

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

burhandodhy
Copy link
Contributor

Description of the Change

This PR fixes the issue when clicking on the Facet terms redirects to homepage when the search parameter value is empty. The issue was that the s parameter was removed from the URL because of the empty check.

Closes #3012

How to test the Change

  • Add the Taxonomy Facet Widget
  • Search without adding any search term on frontend
  • Click on the term item
  • It should open the Search page instead of Homepage

Changelog Entry

Fixed - Clicking on the Facet Term redirect to Homepage

Credits

Props @burhandodhy

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@burhandodhy burhandodhy added this to the 4.4.0 milestone Sep 29, 2022
@felipeelia felipeelia merged commit 6e3b84c into develop Sep 30, 2022
@felipeelia felipeelia deleted the burhan/fix-3012 branch September 30, 2022 12:24
@fclaussen
Copy link

@felipeelia Do you know what release received this update? I can't find a mention of it in there.

@felipeelia
Copy link
Member

It was released in 4.4.0 @fclaussen. You can check that under the "Milestone" section on the right side of this screen:
image

@fclaussen
Copy link

@felipeelia Oh! Thank you! I did not notice the milestone on the sidebar. Thanks!

rebeccahum added a commit to Automattic/ElasticPress that referenced this pull request Mar 22, 2023
rebeccahum added a commit to Automattic/ElasticPress that referenced this pull request Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Clicking on Facet Item redirects to the homepage.
3 participants