Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    In version 2.3.6 paging is not working for HTTPS .

    Bug Report
    2
    2
    1063
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mishant last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • S
        shivendra-webkul last edited by shivendra-webkul

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post