Skip to content

Commit

Permalink
Puts page switch parameters in alphabetic order to support S3 (#11960) (
Browse files Browse the repository at this point in the history
#11966)

* Puts page switch parameters in alphabetic order to support S3 (#11960)

Signed-off-by: intelkevinputnam <[email protected]>

Co-authored-by: intelkevinputnam <[email protected]>

* DOCS-restore_gsearch_comma (#11980)

Co-authored-by: Kevin Putnam <[email protected]>
Co-authored-by: intelkevinputnam <[email protected]>
Co-authored-by: Piotr Milewski <[email protected]>
  • Loading branch information
4 people authored Jul 6, 2022
1 parent 3266216 commit ad1c879
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/_static/js/gsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function addPagination(query, selectedVersion, currentPage, previousPage, nextPa
var $previous = $('<a>', {
'text': 'Previous',
'class': 'gs-cursor-page-previous',
'href': 'search.html?query=' + query + '&page=' + previousPage + '&version=' + selectedVersion
'href': 'search.html?page=' + previousPage + '&query=' + query + '&version=' + selectedVersion
});
$cursor.append($previous);
}
Expand All @@ -274,7 +274,7 @@ function addPagination(query, selectedVersion, currentPage, previousPage, nextPa
for(var i = 0; i < pageList.length; i++) {
$page = $('<a>', {
'class': 'gs-cursor-page',
'href': 'search.html?query=' + query + '&page=' + pageList[i] + '&version=' + selectedVersion,
'href': 'search.html?page=' + pageList[i] + '&query=' + query + '&version=' + selectedVersion,
'text': pageList[i]
});
if (currentPage === pageList[i]) {
Expand All @@ -287,7 +287,7 @@ function addPagination(query, selectedVersion, currentPage, previousPage, nextPa
var $next = $('<a>', {
'text': 'Next',
'class': 'gs-cursor-page-next',
'href': 'search.html?query=' + query + '&page=' + nextPage + '&version=' + selectedVersion
'href': 'search.html?page=' + nextPage + '&query=' + query + '&version=' + selectedVersion
});
$cursor.append($next);
}
Expand Down

0 comments on commit ad1c879

Please sign in to comment.