fix: The previous and next pages carry baseurl (#292)

This commit is contained in:
jump-and-jump 2025-04-08 22:27:12 +08:00 committed by GitHub
parent 51cc65eba4
commit a19450ffb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@ const getPageUrl = (p: number) => {
--- ---
<div class:list={[className, "flex flex-row gap-3 justify-center"]} style={style}> <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", class:list={["btn-card overflow-hidden rounded-lg text-[var(--primary)] w-11 h-11",
{"disabled": page.url.prev == undefined} {"disabled": page.url.prev == undefined}
]} ]}
@ -73,7 +73,7 @@ const getPageUrl = (p: number) => {
>{p}</a> >{p}</a>
})} })}
</div> </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", class:list={["btn-card overflow-hidden rounded-lg text-[var(--primary)] w-11 h-11",
{"disabled": page.url.next == undefined} {"disabled": page.url.next == undefined}
]} ]}