Fix broken link to page 1 within pagination

Relates: #10349
This commit is contained in:
Daniel Siepmann 2023-02-16 07:53:03 +01:00
parent cd42770efe
commit a188dd280c
2 changed files with 7 additions and 19 deletions

View file

@ -29,7 +29,7 @@ Features
Fixes
-----
Nothing
* Properly link to first page within Pagination partial.
Tasks
-----

View file

@ -51,24 +51,12 @@
</f:then>
<f:else>
<li class="page-item">
<f:if condition="{page} > 1">
<f:then>
<a class="page-link"
href="{f:uri.action(addQueryString: 1, arguments: {currentPage: page})}"
aria-label="Goto Page {page}"
>
{page}
</a>
</f:then>
<f:else>
<a class="page-link"
href="{f:uri.action(addQueryString: 1)}"
aria-label="Goto Page 1"
>
1
</a>
</f:else>
</f:if>
<a class="page-link"
href="{f:uri.action(addQueryString: 1, arguments: {currentPage: page})}"
aria-label="Goto Page {page}"
>
{page}
</a>
</li>
</f:else>
</f:if>