reach/router

Active link is not asserted for URL with special characters

Open

#320 opened on Nov 1, 2019

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (352 forks)batch import
good first issuehelp wanted

Repository metrics

Stars
 (6,917 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I think that here:

https://github.com/reach/router/blob/28a79e7fc3a3487cb3304210dc3501efb8a50eba/src/index.js#L406-L407

location.pathname should be instead decodeURIComponent(location.pathname)

Contributor guide