Community

Preview and production difference in variable interpretation

Hello everyone,

In the code for a page, I have integrated an iframe whose URL must include the query string from the host URL. Here is the code I am using:

{% set query_string = request.query|default(“utm_source=site&utm_campaign=contact-entrant”) %}

When I look at the page preview (in a new window), the code works correctly and the host URL parameters are added to the iframe’s one. But once the page is live, the `query_string` variable is empty (she is well interpreted as String, but empty).

I can’t explain this type of behavior. Has anyone ever encountered a similar case?

LEAVE A RESPONSE

Your email address will not be published. Required fields are marked *