Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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
lib/jekyll-github-metadata/edit-link-tag.rb Outdated Show resolved Hide resolved
@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.

spec/spec_helpers/fixture_helper.rb Outdated Show resolved Hide resolved
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.