From 4c34cad23245e6c2a2a8e07d5c8deaebc6d345d6 Mon Sep 17 00:00:00 2001 From: Jhon Date: Thu, 8 Feb 2024 16:31:03 -0400 Subject: [PATCH] Fix pagination links in sections page Issue: documentacao-e-tarefas/scielo#631 Signed-off-by: Jhon --- templates/frontend/pages/sections.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/frontend/pages/sections.tpl b/templates/frontend/pages/sections.tpl index 2f0982d..abe9f3e 100644 --- a/templates/frontend/pages/sections.tpl +++ b/templates/frontend/pages/sections.tpl @@ -46,12 +46,12 @@ {* Pagination *} {if $prevPage > 1} - {capture assign="prevUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="section" op="view" path=$sectionPath|to_array:$prevPage}{/capture} + {capture assign="prevUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="preprints" op="section" path=$sectionPath|to_array:$prevPage}{/capture} {elseif $prevPage === 1} - {capture assign="prevUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="section" op="view" path=$sectionPath}{/capture} + {capture assign="prevUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="preprints" op="section" path=$sectionPath}{/capture} {/if} {if $nextPage} - {capture assign="nextUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="section" op="view" path=$sectionPath|to_array:$nextPage}{/capture} + {capture assign="nextUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="preprints" op="section" path=$sectionPath|to_array:$nextPage}{/capture} {/if} {include file="frontend/components/pagination.tpl"