8000 Links to previous pages are wrongly generated in latest blog posts pagination · Issue #6365 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

Links to previous pages are wrongly generated in latest blog posts pagination #6365

@vedranmiletic

Description

@vedranmiletic

Context

No response

Bug description

When there is three or more pages of latest posts on the blog, some of the pagination links at the bottom of the page are wrongly generated from page 3 onward.

Related links

Reproduction

9.4.10-latest-posts-pagination-links.zip

Steps to reproduce

  1. mkdocs serve in the minimal example
  2. Navigate to /blog/, go to the bottom of the page, observe by hovering and looking in the browser status bar or using developer tools that the links to pages 2, 3, and 4 are correct
  3. Navigate to /blog/page/2/, observe that the links to pages 1, 3, and 4 are correct
  4. Navigate to /blog/page/3/, observe that the links to pages 1 and 4 are correct, while the link to page 2 is actually the link to page 1
  5. Navigate to /blog/page/3/, observe that the links to page 1 is correct, while the links to page 2 and 3 are actually the links to page 1 as well

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0