CodeIgniter Forums

Full Version: get prev page and next url
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
To build right structure (for SEO) for paginated web pages, as stated here we have 2 options:

1. implement VIEW ALL page or
2. put rel="prev" and rel="next" meta info in page

I am using second option. I extended Pagination Library to get prev_url and next_url. 

I guess it would very helpful functionality for Pagination Library if you add functions to get prev_url and next_url
(08-17-2018, 04:23 AM)XtreemDeveloper Wrote: [ -> ]You can use prev_url and next_url for this.

Where I get prev_url and next_url ? 

Currently I get it with the methods I have implemented, so I am suggesting to add methods to get prev and next url to Pagination library