Skip to content
Snippets Groups Projects
Verified Commit 64097c5e authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix filter persistence across pagination

parent 44f2d1b8
No related branches found
No related tags found
No related merge requests found
...@@ -12,14 +12,15 @@ ...@@ -12,14 +12,15 @@
<f:variable name="prevPage" value="{currentPage - 1}"/> <f:variable name="prevPage" value="{currentPage - 1}"/>
<f:if condition="{prevPage} == 0"> <f:if condition="{prevPage} == 0">
<f:then> <f:then>
<f:link.action addQueryString="1" <f:link.action addQueryString="untrusted"
additionalParams="{tx_sgjobs_pagebrowser: ''}" argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}"
additionalAttributes="{aria-label: 'Previous'}"> additionalAttributes="{aria-label: 'Previous'}">
&laquo; &laquo;
</f:link.action> </f:link.action>
</f:then> </f:then>
<f:else> <f:else>
<f:link.action addQueryString="1" <f:link.action addQueryString="untrusted"
argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}"
additionalParams="{tx_sgjobs_pagebrowser: {currentPage: prevPage}}" additionalParams="{tx_sgjobs_pagebrowser: {currentPage: prevPage}}"
additionalAttributes="{aria-label: 'Previous'}"> additionalAttributes="{aria-label: 'Previous'}">
&laquo; &laquo;
...@@ -44,13 +45,14 @@ ...@@ -44,13 +45,14 @@
<f:variable name="lessPage" value="{currentPage - 2}"/> <f:variable name="lessPage" value="{currentPage - 2}"/>
<f:if condition="{lessPage} == 0"> <f:if condition="{lessPage} == 0">
<f:then> <f:then>
<f:link.action addQueryString="1" <f:link.action addQueryString="untrusted"
additionalParams="{tx_sgjobs_pagebrowser: ''}"> argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}">
... ...
</f:link.action> </f:link.action>
</f:then> </f:then>
<f:else> <f:else>
<f:link.action addQueryString="1" <f:link.action addQueryString="untrusted"
argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}"
additionalParams="{tx_sgjobs_pagebrowser: {currentPage: lessPage}}"> additionalParams="{tx_sgjobs_pagebrowser: {currentPage: lessPage}}">
... ...
</f:link.action> </f:link.action>
...@@ -75,13 +77,14 @@ ...@@ -75,13 +77,14 @@
<li class="tx-pagebrowse-page"> <li class="tx-pagebrowse-page">
<f:if condition="{pageLink.page} == 0"> <f:if condition="{pageLink.page} == 0">
<f:then> <f:then>
<f:link.action addQueryString="1" <f:link.action addQueryString="untrusted"
additionalParams="{tx_sgjobs_pagebrowser: ''}"> argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}">
{pageLink.number} {pageLink.number}
</f:link.action> </f:link.action>
</f:then> </f:then>
<f:else> <f:else>
<f:link.action addQueryString="1" <f:link.action addQueryString="untrusted"
argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}"
additionalParams="{tx_sgjobs_pagebrowser: {currentPage: pageLink.page}}"> additionalParams="{tx_sgjobs_pagebrowser: {currentPage: pageLink.page}}">
{pageLink.number} {pageLink.number}
</f:link.action> </f:link.action>
...@@ -95,7 +98,8 @@ ...@@ -95,7 +98,8 @@
<f:if condition="{enableMorePages} && {showNextPages}"> <f:if condition="{enableMorePages} && {showNextPages}">
<li> <li>
<f:variable name="morePage" value="{currentPage + 2}"/> <f:variable name="morePage" value="{currentPage + 2}"/>
<f:link.action addQueryString="1" <f:link.action addQueryString="untrusted"
argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}"
additionalParams="{tx_sgjobs_pagebrowser: {currentPage: morePage}}"> additionalParams="{tx_sgjobs_pagebrowser: {currentPage: morePage}}">
... ...
</f:link.action> </f:link.action>
...@@ -106,7 +110,8 @@ ...@@ -106,7 +110,8 @@
<f:then> <f:then>
<li class="tx-pagebrowse-next"> <li class="tx-pagebrowse-next">
<f:variable name="nextPage" value="{currentPage + 1}"/> <f:variable name="nextPage" value="{currentPage + 1}"/>
<f:link.action addQueryString="1" <f:link.action addQueryString="untrusted"
argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}"
additionalParams="{tx_sgjobs_pagebrowser: {currentPage: nextPage}}" additionalParams="{tx_sgjobs_pagebrowser: {currentPage: nextPage}}"
additionalAttributes="{aria-label: 'Next'}"> additionalAttributes="{aria-label: 'Next'}">
&raquo; &raquo;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment