Skip to content

Commit ca5e73e

Browse files
committed
fix: skip prefetching for pagination buttons
1 parent 99fd80f commit ca5e73e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -936,11 +936,11 @@ function toggletheme() {
936936
<div class="container pb-3" style="display:flex;justify-content:center;">
937937
<nav aria-label="Page navigation example">
938938
<ul class="pagination">
939-
<li class="page-item"><a class="page-link <?= $current_page <= 1 ? "disabled" : "" ?>" href="${{`process.env.BASE_PATH ?? ''`}}$<?= $request_uri . "?p=" . ($current_page - 1) ?>"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="iconX icon-tabler icons-tabler-outline icon-tabler-chevron-left"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 6l-6 6l6 6" /></svg></a></li>
939+
<li class="page-item"><a data-turbo-prefetch="false" class="page-link <?= $current_page <= 1 ? "disabled" : "" ?>" href="${{`process.env.BASE_PATH ?? ''`}}$<?= $request_uri . "?p=" . ($current_page - 1) ?>"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="iconX icon-tabler icons-tabler-outline icon-tabler-chevron-left"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 6l-6 6l6 6" /></svg></a></li>
940940
<?php foreach ($pages as $p) { ?>
941-
<li class="page-item"><a class="page-link <?= $p == $current_page ? "active" : "" ?> <?= $p == ".." ? "disabled" : "" ?>" href="${{`process.env.BASE_PATH ?? ''`}}$<?= $request_uri . "?p=" . ($p) ?>"><?= $p ?></a></li>
941+
<li class="page-item"><a data-turbo-prefetch="false" class="page-link <?= $p == $current_page ? "active" : "" ?> <?= $p == ".." ? "disabled" : "" ?>" href="${{`process.env.BASE_PATH ?? ''`}}$<?= $request_uri . "?p=" . ($p) ?>"><?= $p ?></a></li>
942942
<?php } ?>
943-
<li class="page-item"><a class="page-link <?= $current_page >= $max_pages ? "disabled" : "" ?>" href="${{`process.env.BASE_PATH ?? ''`}}$<?= $request_uri . "?p=" . ($current_page + 1) ?>"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="iconX icon-tabler icons-tabler-outline icon-tabler-chevron-right"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 6l6 6l-6 6" /></svg></a></li>
943+
<li class="page-item"><a data-turbo-prefetch="false" class="page-link <?= $current_page >= $max_pages ? "disabled" : "" ?>" href="${{`process.env.BASE_PATH ?? ''`}}$<?= $request_uri . "?p=" . ($current_page + 1) ?>"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="iconX icon-tabler icons-tabler-outline icon-tabler-chevron-right"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 6l6 6l-6 6" /></svg></a></li>
944944
</ul>
945945
</nav>
946946
</div>

0 commit comments

Comments
 (0)