Skip to content

Commit 0b5e6b9

Browse files
committed
fix: Of the 'pagination left-arrows' bug
1 parent 08f5804 commit 0b5e6b9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Bookffee",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Bookffee is a website to search for books, which allows you to know their prices and synopses, as well as being able to filter them by genre, popularity and date.",
55
"main": "app.js",
66
"scripts": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ the opening of an issue to check the change you want to make.
4343

4444
## Project Status:
4545

46-
### `Version: 1.1.1`
46+
### `Version: 1.1.2`
4747
<h3><i>You can access the Bookffee website by clicking <a href="https://bookffee.herokuapp.com/" target="_blank">here</a>.</i></h3>
4848

4949
## License

views/templates/pagination.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<%# Check if there are more than 1 or 2 pages to add 'left arrows' pagination buttons %>
77
<% if (page > 2) { %>
88
<li class="page-item mx-1">
9-
<a class="page-link" href="/?<%= query %><%= route %>page=1"><i class="fas fa-angle-double-left"></i></a>
9+
<a class="page-link" href="/<%= route %>?<%= query %>page=1"><i class="fas fa-angle-double-left"></i></a>
1010
</li>
1111
<% } %>
1212
<% if (page > 1) { %>
1313
<li class="page-item mx-1">
14-
<a class="page-link" href="/?<%= query %><%= route %>page=<%= page - 1 %>"><i class="fas fa-chevron-left"></i></a>
14+
<a class="page-link" href="/<%= route %>?<%= query %>page=<%= page - 1 %>"><i class="fas fa-chevron-left"></i></a>
1515
</li>
1616
<% } %>
1717

@@ -40,4 +40,4 @@
4040
<li class="page-item mx-1"><a class="page-link" href="/<%= route %>?<%= query %>page=<%= page + 1 %>"><i class="fas fa-chevron-right"></i></a></li>
4141
<% } %>
4242
</ul>
43-
</nav>
43+
</nav>

0 commit comments

Comments
 (0)