⭐️ If you like Statamic, give it a star on GitHub! ⭐️

Use routes instead of query strings for pagination

I have a blog with paginated pages for post listings, ie:

  • /blog?page=2
  • /blog?page=3

I'd like to switch to full static caching, but ignore query strings. Which means I have to change these get params to routes, ie:

  • /blog/page-2
  • /blog/page-3

What's the best approach?

  1. Build a controller and use pagination?
  2. Would Statamic play well with the Laravel pagination package?
>>>>>>> Unanswered <<<<<<<
1 Reply
2 Followers