We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 404fbb6 commit dd08eb8Copy full SHA for dd08eb8
src/pagination.js
@@ -25,7 +25,7 @@ function isALinkTo (path, element) {
25
if (arguments.length === 1) {
26
return (element) => isALinkTo(path, element)
27
}
28
- return element.getAttribute('href').split('?')[0] === `#${path}`
+ return decodeURI(element.getAttribute('href').split('#')[1]) === decodeURI(path)
29
30
31
0 commit comments