Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Improved: code to apply the filter on all the category pages (#561) #562

Conversation

ymaheshwari1
Copy link
Contributor

Related Issues

#561

Closes #561

Short Description and Why It's Useful

The changes will remove the page number from the route which is causing the page change instead of product update.

Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change

Contribution and Currently Important Rules Acceptance

@ymaheshwari1
Copy link
Contributor Author

Maintained the changelog for this PR here: #573

@@ -530,6 +530,7 @@ export default {
}
},
changeFilter (filter) {
delete this.$route.query.page
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is not a proper approach. You shouldn't modify this.$route.query object this way. Only via push or replace method. Please think about a different approach

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Fifciu Solved the issue by updating the filterHelpers.ts file in catalog-next module.
PR: vuestorefront/vue-storefront#5396

@CLAassistant
Copy link

CLAassistant commented Jan 12, 2021

CLA assistant check
All committers have signed the CLA.

@ymaheshwari1 ymaheshwari1 force-pushed the #561/unable-to-apply-filter-on-category-page branch from 3d95628 to 17837db Compare January 12, 2021 09:42
@ymaheshwari1
Copy link
Contributor Author

Closing this PR as the code improvements for the issue has been handled in the vue storefront PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to apply filter on category page after changing the page
3 participants