Skip to content

Commit 6bda5ac

Browse files
Merge pull request datacite#1519 from datacite/fix-enrichments-cursor-bug
Fix enrichments cursor paging bug
2 parents 0c998a4 + c7342af commit 6bda5ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/enrichments_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ def build_next_link(doi, client_id, next_cursor)
8181
base_link = request.original_url.split("?").first
8282

8383
query_string = if doi.present?
84-
"doi=#{doi}&cursor=#{next_cursor}"
84+
"doi=#{doi}&page[cursor]=#{next_cursor}"
8585
elsif client_id.present?
86-
"client-id=#{client_id}&cursor=#{next_cursor}"
86+
"client-id=#{client_id}&page[cursor]=#{next_cursor}"
8787
else
8888
"page[cursor]=#{next_cursor}"
8989
end

0 commit comments

Comments
 (0)