IQSS / dataverse-frontend

An upcoming and modernized UI for Dataverse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Query Param in Home Page dataset list pagination

ekraffmiller opened this issue · comments

From Guillermo' QA comments, steps to reproduce:

TEST 4 - Pagination: Back button and URL page query param

🚨

In JSF, a query parameter is added to the URL to indicate the results page you are on. I think we should continue to support this. It is useful for scenarios like the following:

  • When you have navigated to a new result page, by clicking on the browser's back button you navigate to the previously selected page.

  • With the query param you are also able to share a URL that leads directly to a particular page on the home page.

You can see in the following video how, by not adding the query parameter, the back button navigates to the page before reaching the home page.

paginationtest2.mov

Originally posted by @GPortas in #274 (review)

I'm glad I didn't have to ask for continued support for this. 😄 On the JSF side I made sure the query parameters are present in the URL so people can bookmark or send links around or even hack on the URL. I think they're useful.

JSF has a limitation where you can't have the same parameter over and over. However, in the Search API we repeat fq as often as we like. I imagine the SPA would work like the Search API.