Describe the bug
When trying to correct and ordered corpus after a search, switching from one page to another may result in the loss of the ordering if the bottom link to next page is used.
Top navigation link:
Bottom navigation links:
To Reproduce
Search for some tokens in a corpus
Sort by lemma
Go to page 3.
When trying to go to page 4,
Top pagination link is:
https://dh.chartes.psl.eu/pyrrha/corpus/1215/tokens/search?page=4&limit=100&lemma=*%2B*&morph=&POS=Not*&form=&orderBy=lemma&desc=0
Bottom pagination link is:
https://dh.chartes.psl.eu/pyrrha/corpus/1215/tokens/search?page=4&limit=100&lemma=*%2B*&morph=&POS=Not*&form=
Expected behavior
The OrderBy GET variable should be transmitted in the bottom page link.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Using dh.chartes instance.
Solution
There may be a solution by correcting the following lines in file app/templates/main/tokens_search_through_fields.html:
Describe the bug When trying to correct and ordered corpus after a search, switching from one page to another may result in the loss of the ordering if the bottom link to next page is used.
To Reproduce
When trying to go to page 4,
Top pagination link is:
https://dh.chartes.psl.eu/pyrrha/corpus/1215/tokens/search?page=4&limit=100&lemma=*%2B*&morph=&POS=Not*&form=&orderBy=lemma&desc=0
Bottom pagination link is:
https://dh.chartes.psl.eu/pyrrha/corpus/1215/tokens/search?page=4&limit=100&lemma=*%2B*&morph=&POS=Not*&form=
Expected behavior The
OrderBy
GET variable should be transmitted in the bottom page link.Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information): Using dh.chartes instance.
Solution
There may be a solution by correcting the following lines in file
app/templates/main/tokens_search_through_fields.html
: