fix: renomme /cursor/ en /page/ pour la pagination

This commit is contained in:
Cedric Abonnel
2026-05-12 10:07:49 +02:00
parent 7e5280abcd
commit 77cc391ff1
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -85,13 +85,13 @@ ob_start();
} elseif ($hasCat) {
$prevHref = $catBase . '?cursor=' . rawurlencode($prevCursor);
} else {
$prevHref = '/cursor/' . rawurlencode($prevCursor);
$prevHref = '/page/' . rawurlencode($prevCursor);
}
?>
<a class="pagination-btn" href="<?= htmlspecialchars($prevHref) ?>">← Plus récents</a>
<?php endif; ?>
<?php if ($nextCursor !== null): ?>
<?php $nextHref = $hasCat ? $catBase . '?cursor=' . rawurlencode($nextCursor) : '/cursor/' . rawurlencode($nextCursor); ?>
<?php $nextHref = $hasCat ? $catBase . '?cursor=' . rawurlencode($nextCursor) : '/page/' . rawurlencode($nextCursor); ?>
<a class="pagination-btn ms-auto" href="<?= htmlspecialchars($nextHref) ?>">Plus anciens →</a>
<?php endif; ?>
</nav>