Is there a way to pass query params in gatsby-plugin-catch-links #37986
Unanswered
angelo-martinez
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a gatsby website with mdx where I need to basically copy/paste query params on all links so I can keep the same tracking parameters throughout route changes. I have built a wrapper component for gatsby-link that copy paste the query parameters. However for my markdown links I can not figure out a way to add this functionality to them without rewriting them with my wrapper component. Is there a way to tell gatsby-plugin-catch-links to use my custom wrapper component of gatsby-link instead of gatsby-link itself? Has anyone had a similar issue to this and came up with an elegant solution that allowed you to keep using md links?
Beta Was this translation helpful? Give feedback.
All reactions