adjust logic a bit

pull/3663/head
Divyansh Singh 2 years ago committed by GitHub
parent 3feb12df86
commit 8fd66391c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -13,7 +13,7 @@ export function usePrevNext() {
// ignore inner-page links with hashes
const candidates = uniqBy(
links,
(link) => link.link.substring(0, link.link.lastIndexOf('#')) || link.link
(link) => link.link.replace(/[?#].*$/, '')
)
const index = candidates.findIndex((link) => {

Loading…
Cancel
Save