Skip to content
Snippets Groups Projects
Commit c593d91f authored by Isabella Skořepová's avatar Isabella Skořepová
Browse files

Disable firstpage and lastpage links when already there

parent 77677900
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ export function Paginator({ metadata, file, config }) {
<li>
<a
href={
metadata.firstpage
metadata.firstpage && metadata.firstpage.file !== file
? `${config.baseurl}/${metadata.firstpage.file}`
: undefined
}
......@@ -86,7 +86,7 @@ export function Paginator({ metadata, file, config }) {
<li>
<a
href={
metadata.lastpage
metadata.lastpage && metadata.lastpage.file !== file
? `${config.baseurl}/${metadata.lastpage.file}`
: undefined
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment