Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add an option in Pagination class to generate URL without limitstart=0 #19467
Summary of Changes
SEO impovement for views with pagination.
Add an option to not generate/build URL with empty limitstart -
I added a few changes in com_content component to show how it can work.
I encourage to review the code. Any improvement is welcome.
You can test a new pagination option on article/category/featured/archive views.
Documentation Changes Required
Every 3rd party extension can enable this feature in model or view by adding:
// Flag indicates to not add `&limitstart=` or `&limitstart=0` to URL $pagination->hideEmptyLimitstart = true;
referenced this pull request
Jan 27, 2018
Now all should work as expected without any B/C break.
Every 3rd party extension can enable that option in model or view by adding:
// Flag indicates to not add limitstart=0 to URL $pagination->hideEmptyLimitstart = true;
@csthomas Technically it's a new feature and thus can't go into 3.8.x. It has to go into 3.9.0.