dynamicweb / Swift

Dynamicweb Swift is a plug-and-play standard solution for Dynamicweb Ecommerce which allows you to create beautiful mobile-friendly Ecommerce websites with minimal effort and almost no coding with awesome performance, wcag support and much more...
https://doc.dynamicweb.dev/manual/swift/index.html
GNU General Public License v3.0
21 stars 17 forks source link

Sorting for paging defaults to Relevance, not to module sorting #28

Closed Imar closed 1 year ago

Imar commented 1 year ago

Hi there, When paging products, the default sorting for the next page is hard-coded to "Relevance". This causes issues when the default sort is overwritten on the module.

Steps to reproduce:

  1. On the catalog module, set up sorting as follows:

image

  1. Browse to the products page. The first 25 products or so are sorted correctly by creation date.

  2. Click the Next page link.

Expected results I get the next page of records with all products still sorted by creation date in descending order.

Actual results The sorting is now off as it uses Relevance in the query string for the next page instead of "-created"

/products?PageSize=42&SortBy=Relevance&RequestType=UpdateList

nicped commented 1 year ago

Bug devops#14444 https://dev.azure.com/dynamicwebsoftware/Dynamicweb/_git/Swift/pullrequest/9405