Skip to content

[Bug]: Category sort by selection not set if query param is present #384

@bartoszherba

Description

@bartoszherba

Expected Behavior

Sort by option is selected according to query param.

Actual Behavior

Sort by option is not selected but items are sorted properly.

Possible Solution

Make sure that option is selected if there is a query param in url.

Steps to reproduce

  1. Go to the category page
  2. Select sort by option and observe that the option is properly selected and query param is added
  3. Reload page
    4. Sort by option is selected according to query param

What version of Magento 2 integration are you using?

2.4.x

What version of Node.js are you using?

16.13.1

What browser (and version) are you using?

Version 96.0.4664.110 (Official Build) (arm64)

What operating system (and version) are you using?

macOS Monterey 12.1

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

bugSomething isn't workingtriage-neededIssues that need to be checkedvsf_team

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions