datopian / frontend-v2

CKAN / Data Portal frontend as microservice in pure Javascript (Node).
http://tech.datopian.com/frontend/
MIT License
38 stars 18 forks source link

When paginating the sort option is lost #167

Open anuveyatsu opened 4 years ago

anuveyatsu commented 4 years ago

Every usage of pagination removes &sort=... part of a query, so datasets are sorted in default order.

E.g., visit https://www.opendata.dk/search and select sort option other than default one:

https://www.opendata.dk/search?q=&sort=views_recent%3Adesc

Next, try to go to page 2 and see that queries are lost.

gavram commented 4 years ago

This affects all projects which use frontend-v2. A simple solution is implemented in:

National Grid

Montreal