Problem with links with `utm` campaings

Any update to this feature? WpSource: Define a map of `allowedQueries` to only preserve them in data references (links)

I had to implement what I feel is a hack in the beforeSSR actions (see code below) to not allow the utm param to be passed to the wp api, as it was giving me a 404 return:

// Removing param from router link so that its not passed to the WP json api
var find = state.router.link.indexOf("utm");
if (find > 0) {
  state.router.link = state.router.link.split('?')[0];
 }

Links with utm campaings work fine in Frontity (https://mars.frontity.org/?utm=test) so I’m not sure what may be going on.

Could you reproduce the issue in a CodeSanbox (https://githubbox.com/frontity/frontity-codesandbox) so we can take a look? Thanks!

My work around for this was just:

state.router.link = state.frontity.initialLink = state.router.link.split('?')[0];

That way it wasn’t trying to redirect

I’m sorry @ryanaker but I still don’t see where is the problem. I’ve never heard of 404 problems because of utm campaigns before.

What version of the Frontity core/packages are you using? Is it the latest?

@luisherranz so with this Google UTM url:

https://stellacenter.com/symptoms-checker/?utm_source=google&utm_medium=cpc&utm_campaign=national-sgb-bmm&utm_content={{adgroupname}}&utm_term={%2Bstellate%20%2Bganglion%20%2Bblock}&adgroupid={114318186434}&campaign_id={11357676474}&adid={474440694640}&gclid=Cj0KCQiA0MD_BRCTARIsADXoopZPQ1IOYQJr7SOUHZL5vgOT81W9Q-oKYbwzQq85e4agtU6NxBq5llQaAiVpEALw_wcB

You’ll see in browser address bar that it will update the (removing params) and for whatever reason Frontity tries to find that page/route.

Our site is only custom pages as of right now, so its not using the full effects of frontity.

I’d be happen to have you look at our repo, I also have another issue needing help with: