Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291170

Pager should start counting from 1, not 0

$
0
0

Problem/Motivation

The pager starts counting from 0, which for a human is very confusing as no page 0 exists. This also causes the page numbers displayed in the pager and in the URL to be different from each other.

Now when Views is looking to get into D8, then #1024226: Option to start Pager count at 1 instead of 0 is related to this as well. Unless they will merge into one pager.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Prioritized changesThe main goal of this issue is usability.
DisruptionThis change should not disrupt the internal behaviors of the paging system if the internal counter is unaltered, but will change hardcoded links to specific pages of content, which might require updates to some existing sites.

Proposed resolution

Do not alter the internal page number, but only show a pager starting at 1 in the URL.

Remaining tasks

Contributor tasks needed
TaskNovice task?Contributor instructionsComplete?
Create a patchInstructions
Update the issue summaryInstructionsDone in #9
Update the issue summary noting if allowed during the betaInstructionsDone in #9
Add automated testsInstructions
Draft a change record for the API changesInstructions

User interface changes

None

API changes

None


Viewing all articles
Browse latest Browse all 291170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>