We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 12bad02 + 1ed86e2 commit e1a262cCopy full SHA for e1a262c
1 file changed
packages/react-renderer-demo/src/app/src/components/navigation/find-connected-links.js
@@ -1,3 +1,5 @@
1
-const findConnectedLinks = (pathname, navSchema) => navSchema.find(({ link }) => pathname.replace(/^\//, '') === link);
+const query = /\?.*/;
2
+
3
+const findConnectedLinks = (pathname, navSchema) => navSchema.find(({ link }) => pathname.replace(/^\//, '').replace(query, '') === link);
4
5
export default findConnectedLinks;
0 commit comments