# Preview and production difference in variable interpretation

**URL:** <https://community.hubspot.com/t/preview-and-production-difference-in-variable-interpretation/141646>\
**Category:** CMS Development\
**Created:** [October 27, 2025, 3:49pm UTC](https://community.hubspot.com/t/preview-and-production-difference-in-variable-interpretation/141646 "2025-10-27T15:49:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![albertsg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/albertsg/32/99473_2.png) [@albertsg](https://community.hubspot.com/u/albertsg)\
**Post date:** [October 30, 2025, 11:21am UTC](https://community.hubspot.com/t/preview-and-production-difference-in-variable-interpretation/141646/3 "2025-10-30T11:21:31Z")

</div>

Hi @SDEGLIAME, maybe a stupid question but since you are just checking the query parameters of the URL, did you make sure you are accessing the live page with queries?  
Because the preview always has a query (something like ?hsPreview=…) but a live page doesn’t necesarily need to have queries.  
So if the page is something like [mywebsite.com](https://mywebsite.com/my-path) and has no queries, then it makes sense that you code is not working.  
Maybe it’s worth adding some logic for when that happens and default to some specific and predefined queries so the iframe loads. But that’s up to you and your goals.  
Do you maybe have a few links (with queries) we could use to test?

---

_[View the full topic](https://community.hubspot.com/t/preview-and-production-difference-in-variable-interpretation/141646)._
