We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec95237 commit 706d569Copy full SHA for 706d569
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