In version 2.3.6 paging is not working for HTTPS .
-
In version 2.3.6 paging is not working for HTTPS .
As on load more button call http url instead of https on product seach api call.The rest website works fine for HTTPS but the product search page load more button is not working.
-
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 ofhttps://.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.phpfile, inside the->withMiddleware(...)block, add:$middleware->trustProxies('*');After making the change, clear the application cache:
php artisan optimize:clearPlease also verify the following server configuration
-
Ensure
APP_URLin your.envfile is set to your HTTPS URL, for example:APP_URL=https://yourdomain.com -
Make sure your reverse proxy forwards the
X-Forwarded-Proto: httpsheader.-
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 -