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

Page 1 links to previous page #129

Open
jcuenod opened this issue Apr 19, 2020 · 0 comments
Open

Page 1 links to previous page #129

jcuenod opened this issue Apr 19, 2020 · 0 comments

Comments

@jcuenod
Copy link

jcuenod commented Apr 19, 2020

For some reason the pagination page list does a check when the page number is 1 and instead of linking to the first page, links to the previous page:

{% elsif page == 1 %}
<a class="ml-1 mr-1" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>

(Note href="{{ paginator.previous_page_path)

Note that #124 appears to fix this by making the first page link to the baseurl.

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

No branches or pull requests

1 participant