Skip to content

Commit dc67bee

Browse files
committed
fix: parse alink with ?
1 parent dd08eb8 commit dc67bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pagination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function isALinkTo (path, element) {
2525
if (arguments.length === 1) {
2626
return (element) => isALinkTo(path, element)
2727
}
28-
return decodeURI(element.getAttribute('href').split('#')[1]) === decodeURI(path)
28+
return decodeURIComponent(element.getAttribute('href').split('?')[0]) === decodeURIComponent(`#${path}`)
2929
}
3030

3131

0 commit comments

Comments
 (0)