We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5250fa2 commit 812fc6cCopy full SHA for 812fc6c
src/router.js
@@ -16,8 +16,7 @@ const UPDATE = (state, url) => {
16
return state;
17
}
18
19
- const elements = url.composedPath();
20
- const link = elements.find(el => el.tagName?.toLowerCase() === 'a' && el.href),
+ const link = url.composedPath().find(el => el.nodeName == 'A' && el.href),
21
href = link && link.getAttribute('href');
22
if (
23
!link ||
0 commit comments