-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CloudFlare is stripping UTM tags again #7329
Comments
@TheoChevalier Upon further investigation looks like a localization regression that only works with links without the locale. #7329 @tomusher has checked and it's not Cloudflare this time |
@ben if that were the case, we'd expect to see it fail on staging, too, but it only happens on production. This link works fine: This link does not: |
@tomusher @TheoChevalier Update: seems to only happen if you're logged in to Wagtail. Otherwise, it works properly |
Oooh nice! Thanks for figuring this out! |
Good catch thank you @benhohner - turns out this was the worker. It was configured to strip querystrings from every request, check if the request was cacheable (i.e. user isn't logged in), and then only reapplies the stripped values if the request was cacheable. I've moved the querystring stripping logic so it only happens after we've determined whether the request is cacheable which seems to have resolved this. |
Confirming this is fixed, thanks everyone! |
Looks like what we had in place is not working anymore, UTM tags are stipped on prod during redirects (works on staging)
Test URL https://foundation.mozilla.org/campaigns/apples-anti-tracking-plans-iphone/?subscribed=1&utm_source=email&utm_medium=email&utm_campaign=2020advocacy-fr&utm_content=appleidfathanks&utm_term=5382510
@tomusher Could you check the custom code you wrote for the worker is still in place?
The text was updated successfully, but these errors were encountered: