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 @@
<f:variable name="prevPage" value="{currentPage - 1}"/>
<f:if condition="{prevPage} == 0">
<f:then>
<f:link.action addQueryString="1"
additionalParams="{tx_sgjobs_pagebrowser: ''}"
<f:link.action addQueryString="untrusted"
argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}"
additionalAttributes="{aria-label: 'Previous'}">
&laquo;
</f:link.action>
</f:then>
<f:else>
<f:link.action addQueryString="1"
<f:link.action addQueryString="untrusted"
argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}"
additionalParams="{tx_sgjobs_pagebrowser: {currentPage: prevPage}}"
additionalAttributes="{aria-label: 'Previous'}">
&laquo;
......@@ -44,13 +45,14 @@
<f:variable name="lessPage" value="{currentPage - 2}"/>
<f:if condition="{lessPage} == 0">
<f:then>
<f:link.action addQueryString="1"
additionalParams="{tx_sgjobs_pagebrowser: ''}">
<f:link.action addQueryString="untrusted"
argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}">
...
</f:link.action>
</f:then>
<f:else>
<f:link.action addQueryString="1"
<f:link.action addQueryString="untrusted"
argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}"
additionalParams="{tx_sgjobs_pagebrowser: {currentPage: lessPage}}">
...
</f:link.action>
......@@ -75,13 +77,14 @@
<li class="tx-pagebrowse-page">
<f:if condition="{pageLink.page} == 0">
<f:then>
<f:link.action addQueryString="1"
additionalParams="{tx_sgjobs_pagebrowser: ''}">
<f:link.action addQueryString="untrusted"
argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}">
{pageLink.number}
</f:link.action>
</f:then>
<f:else>
<f:link.action addQueryString="1"
<f:link.action addQueryString="untrusted"
argumentsToBeExcludedFromQueryString="{0: 'tx_sgjobs_pagebrowser'}"
additionalParams="{tx_sgjobs_pagebrowser: {currentPage: pageLink.page}}">
{pageLink.number}
</f:link.action>
......@@ -95,7 +98,8 @@
<f:if condition="{enableMorePages} && {showNextPages}">
<li>
<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}}">
...
</f:link.action>
......@@ -106,7 +110,8 @@
<f:then>
<li class="tx-pagebrowse-next">
<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}}"
additionalAttributes="{aria-label: 'Next'}">
&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