Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get path for first page of paginated pages #219

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

cmbuckley
Copy link
Contributor

@cmbuckley cmbuckley commented Dec 22, 2021

When a page is paginated, the edit link includes the pagination part of the URL. This grabs the path from the first page of the pagination collection.

I would appreciate some help with the tests as I'm not familiar enough with Ruby.

Closes #213

@ashmaroli ashmaroli changed the title Get path for first page of paginated pages (fixes #213) Get path for first page of paginated pages Dec 22, 2021
@ashmaroli
Copy link
Member

Okay. The existing tests pass. Therefore, no regressions.
Now you need to add the test that proves this change works (with your use-case) as claimed.

@cmbuckley
Copy link
Contributor Author

Hmm, not what I was expecting. Although I note that the tests are running against Jekyll 4.2.1 and I was using 3.9.0 to match the version in github-pages gem.

@parkr
Copy link
Member

parkr commented Apr 4, 2023

Seems like a useful bug fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

github_edit_link contains pagination path
3 participants