Skip to content

Commit

Permalink
Merge pull request #726 from forsbergplustwo/pagination_fix
Browse files Browse the repository at this point in the history
Make cursor based pagination return relative uri's when fetching next and previous pages
  • Loading branch information
Tim Anema authored May 8, 2020
2 parents 0f9c1b5 + bf3fc91 commit af01894
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Version 9.1.1

* Make cursor based pagination return relative uri's when fetching next and previous pages. [#726](https://github.com/Shopify/shopify_api/pull/726)

## Version 9.1.0

* Implements equality operator on `Session` [#714](https://github.com/Shopify/shopify_api/pull/714)
Expand Down
2 changes: 1 addition & 1 deletion lib/shopify_api/pagination_link_headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def parse_link_header(link_header)
url = parts[0][/<(.*)>/, 1]
rel = parts[1][/rel="(.*)"/, 1]&.to_sym

url = URI.parse(url)
url = URI.parse(url).request_uri
LinkHeader.new(url, rel)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/shopify_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ShopifyAPI
VERSION = "9.1.0"
VERSION = "9.1.1"
end

0 comments on commit af01894

Please sign in to comment.