CodeIgniter Forums
get prev page and next url - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: get prev page and next url (/showthread.php?tid=71470)



get prev page and next url - neuron - 08-17-2018

To build right structure (for SEO) for paginated web pages, as stated here https://support.google.com/webmasters/answer/1663744?hl=en 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


RE: get prev page and next url - neuron - 08-17-2018

(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