Skip to content

Commit

Permalink
Fix pagination links in sections page
Browse files Browse the repository at this point in the history
Issue: documentacao-e-tarefas/scielo#631

Signed-off-by: Jhon <jhon@lepidus.com.br>
  • Loading branch information
JhonathanLepidus committed Feb 8, 2024
1 parent 16f50db commit 4c34cad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/frontend/pages/sections.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4c34cad

Please sign in to comment.