p4bloch's avatar

[L4-BUG?] Pagination layout breaks on production but works fine in local

I get a nice formatted ul for Bootstrap 3 on Homestead, but in the production website the markup is different, therefore breaking the layout.

I'm running locally with Homestead and on production with Forge.

I'm not using a local view.php configuration file that would overwrite any functionality. I do am using a custom paginator for one page, but it doesn't make sense that it is working as it should on the local env but not in production.

Any thoughts? Is this a bug? Anyone had the same problem?

Thanks

0 likes
1 reply
p4bloch's avatar

Ok, problem solved. It was rendering the layout for Bootstrap 2 in production and Bootstrap 3 locally, with the same code.

Turns out that somehow using 'pagination::slider' (instead of pagination::slider-3) locally, it stills renders the layout for Bootstrap 3. I did a composer dump and it still shows the B3 layout in my local environment. Now, if I update the configuration file to 'pagination::slider-3', it works as it should on both local and production.

Anyone in the mood to try to replicate this? :)

Have a great weekend, folks!

Please or to participate in this conversation.