Hi,
Thank you for reaching out.
This is a known issue in Bagisto v2.3.6. The problem is not with the Load More button itself.
The root cause is that Laravel's paginator generates the next page URL based on the incoming request. When your application is running behind a reverse proxy (such as Nginx, Cloudflare, or a load balancer) that terminates HTTPS, Laravel may detect the request as HTTP unless the proxy is trusted. As a result, the pagination URL is generated with http:// instead of https://.
This issue has already been fixed in the Bagisto core and is available starting from v2.3.10.
Recommended Solution
Upgrade your Bagisto installation to v2.3.10 or later. This release includes the trusted proxy fix along with other important improvements and bug fixes.
Alternative (for v2.3.6)
If upgrading is not possible at the moment, you can apply the same fix manually.
In your bootstrap/app.php file, inside the ->withMiddleware(...) block, add:
$middleware->trustProxies('*');
After making the change, clear the application cache:
php artisan optimize:clear
Please also verify the following server configuration
Ensure APP_URL in your .env file is set to your HTTPS URL, for example:
APP_URL=https://yourdomain.com
Make sure your reverse proxy forwards the X-Forwarded-Proto: https header.
Nginx:
proxy_set_header X-Forwarded-Proto $scheme;
Cloudflare: This header is forwarded automatically.
Once the trusted proxy configuration is in place, Laravel will correctly detect HTTPS requests, and the Load More button will generate secure (https://) pagination URLs.
Please let us know if you need any assistance applying the fix or upgrading your Bagisto installation.
Best regards
Team Bagisto