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 Fixes
----- -----
Nothing * Properly link to first page within Pagination partial.
Tasks Tasks
----- -----

View file

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