Skip to content

Commit

Permalink
fix: The previous and next pages carry baseurl
Browse files Browse the repository at this point in the history
  • Loading branch information
wsafight committed Jan 19, 2025
1 parent 8287e42 commit 701c4f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/control/Pagination.astro
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const getPageUrl = (p: number) => {
---

<div class:list={[className, "flex flex-row gap-3 justify-center"]} style={style}>
<a href={url(page.url.prev || "")} aria-label={page.url.prev ? "Previous Page" : null}
<a href={page.url.prev || ""} aria-label={page.url.prev ? "Previous Page" : null}
class:list={["btn-card overflow-hidden rounded-lg text-[var(--primary)] w-11 h-11",
{"disabled": page.url.prev == undefined}
]}
Expand All @@ -73,7 +73,7 @@ const getPageUrl = (p: number) => {
>{p}</a>
})}
</div>
<a href={url(page.url.next || "")} aria-label={page.url.next ? "Next Page" : null}
<a href={page.url.next || ""} aria-label={page.url.next ? "Next Page" : null}
class:list={["btn-card overflow-hidden rounded-lg text-[var(--primary)] w-11 h-11",
{"disabled": page.url.next == undefined}
]}
Expand Down

0 comments on commit 701c4f2

Please sign in to comment.