Skip to content

Fix pagination links to use correct /page/N/ URL format#4

Merged
calcode merged 2 commits intomasterfrom
copilot/fix-page-links-functionality
Feb 22, 2026
Merged

Fix pagination links to use correct /page/N/ URL format#4
calcode merged 2 commits intomasterfrom
copilot/fix-page-links-functionality

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 22, 2026

Pagination "Older" and "Newer" links were generating malformed URLs (e.g. /page2) instead of the correct /page/N/ format, causing navigation to 404.

Changes

  • index.html: Added missing slashes around page numbers in both pagination link hrefs
- <a class="pagination-item older" href="{{ site.baseurl }}page{{paginator.next_page}}">Older</a>
+ <a class="pagination-item older" href="{{ site.baseurl }}page/{{paginator.next_page}}/">Older</a>

- <a class="pagination-item newer" href="{{ site.baseurl }}page{{paginator.previous_page}}">Newer</a>
+ <a class="pagination-item newer" href="{{ site.baseurl }}page/{{paginator.previous_page}}/">Newer</a>

The page 2 → page 1 "Newer" link (which resolves to /) is unchanged and remains correct.

Original prompt

This section details on the original issue you should resolve

<issue_title>Fix the page links</issue_title>
<issue_description>When browsing the older and newer page links, these do not function correctly. Update these so these correctly increment or decrease the pages. Page 1 is '/', and all other pages are follow the /page/ format. </issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: calcode <8709992+calcode@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix page links to navigate correctly between pages Fix pagination links to use correct /page/N/ URL format Feb 22, 2026
Copilot AI requested a review from calcode February 22, 2026 17:44
@calcode calcode marked this pull request as ready for review February 22, 2026 18:13
@calcode calcode merged commit 6a16f93 into master Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix the page links

2 participants