tushargugnani / 5balloons.info

5 stars 1 forks source link

fix home page and pagination issues #14

Closed tapan288 closed 2 years ago

tushargugnani commented 2 years ago

@tapan288 Instead of showAllPosts request parameter, we need to create two routes the home page route i.e. / will show the 5 popular posts and another route i.e. /page/{pageNumber} will show all the posts.

tapan288 commented 2 years ago

@tushargugnani I've tried working on page/{pageNumber} feature but it seems like we need to manually create everything cause default pagination doesn't allow this, it uses the page={pageNumber} format, so have you worked with this before or have any ideas on how we can work around this?

tushargugnani commented 2 years ago

@tapan, Can we create a 301 redirect rule so that /page/2 is redirected to posts?page=2 and so on ....