We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 83c54fd + 706d569 commit e09f638Copy full SHA for e09f638
1 file changed
src/components.tsx
@@ -51,7 +51,7 @@ export function A(props: AnchorProps) {
51
const to_ = to();
52
if (to_ === undefined) return [false, false];
53
const path = normalizePath(to_.split(/[?#]/, 1)[0]).toLowerCase();
54
- const loc = normalizePath(location.pathname).toLowerCase();
+ const loc = decodeURI(normalizePath(location.pathname).toLowerCase());
55
return [props.end ? path === loc : loc.startsWith(path + "/") || loc === path, path === loc];
56
});
57
0 commit comments