Skip to content

Commit ff32cc0

Browse files
committed
Update
A lazy commit.
1 parent b4f21c5 commit ff32cc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/NavTab.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ const NavTab = ({ to, children }) => (
99
{({ location }) => (
1010
<li
1111
className={cx({
12-
'is-active': location.pathname === resolve(to)
12+
'is-active': [location.pathname, location.pathname + '/'].includes(
13+
resolve(to)
14+
),
1315
})}
1416
>
1517
<Link to={to}>{children}</Link>

0 commit comments

Comments
 (0)