We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33ccbc2 commit 7c5b3d1Copy full SHA for 7c5b3d1
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