Link activeOptions exact should ignore trailing slash? #1364
-
Hi. So i have the following piece of code:
and i have an issue where the url path is router/packages/react-router/src/link.tsx Line 429 in 876b887 is using s.location.pathname === next.pathname , which will fail when due to the trailing slash.
Right now the solution is just to add Shouldn't the matching at least trim the trailing slashes? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@hansyulian is your issue here similar to #1309? |
Beta Was this translation helpful? Give feedback.
-
I am getting the same issue in |
Beta Was this translation helpful? Give feedback.
Fixed by @hansyulian in #1372 and published in release 1.22.9.