diff --git a/app/controllers/concerns/paginatable.rb b/app/controllers/concerns/paginatable.rb index bf4587193..4aec4fd3b 100644 --- a/app/controllers/concerns/paginatable.rb +++ b/app/controllers/concerns/paginatable.rb @@ -44,7 +44,7 @@ def page_from_params(params) def make_cursor(results) # Base64-encode cursor - Base64.urlsafe_encode64(results.to_a.last[:sort], padding: false) + Base64.urlsafe_encode64(results.to_a.last[:sort].join(","), padding: false) end end end