We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 927412f commit b776934Copy full SHA for b776934
1 file changed
static/js/publisher/components/PrimaryNav/PrimaryNav.tsx
@@ -104,8 +104,8 @@ function PrimaryNav(): React.JSX.Element {
104
component: NavLink,
105
to: `/admin/${storeId}/models`,
106
icon: "models",
107
- "aria-current": location.pathname.includes(
108
- `/admin/${storeId}/models`,
+ "aria-current": !!location.pathname.match(
+ RegExp(`/admin/${storeId}/models(/.*|$)`),
109
),
110
}
111
: null,
0 commit comments