4.7.0
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