Skip to content

4.7.0

Compare
Choose a tag to compare
@davidcelis davidcelis released this 11 Jan 18:16
· 54 commits to master since this release

This release allows users to configure a hardcoded base URL for pagination links in the case where your application is reachable at multiple URLs and, for example, caching is used. If your application is only available at specific hostnames for specific users, caching these headers can lead to unexpected results. You can set a base URL using the following configuration:

ApiPagination.configure do |config|
  # Hardcode a URL to use in your pagination links (without a trailing slash)
  config.base_url = 'https://example.com'
end