Dynamic page variant can't be set

What are you trying to do?
We have page variants and url parameters. based on URL parameter we pick the variant. This has been working for a lot of months, but recently it was seen this was not working anymore. We have not changed anything and it actually looks like a bug, because the variant is not selected even by using the plasmic preview functionality.

What are the reproduction steps?

  • Set url parameter
  • Create page variants with changes. Set dynamic code picking up the giving url parameter to define which variant to pull
  • Check when navigating to that url the variant is not selected
    Also
  • Use Plasmic preview, change the variant to render using the dropdown. the variant is not render

Relevant links:

  • My project id: say3WhEskogkKxd3puMe5f

Hi @full_breaker, welcome to the community.

Thank you for reporting that preview mode doesn’t work for variants set with a dynamic value. Unfortunately, this is a known issue and we don’t have a fix for this in preview mode at the moment.

Hello @jason
So I’m not just reporting is not working on preview mode… it’s not working at all on the frontend either. As described, we use a URL parameter to define which variant to use and that is not working
Are you saying that is also a known issue? Cause it’s affecting the frontend functionality served to users

I’m not able to reproduce this on a real website. For example, I made a public project to demonstrate.

https://forum-9067.plasmic.run/
https://studio.plasmic.app/projects/5aeSLXBAkjRHW816L8xG5Z/-/Variant?arena_type=page&arena=isukjT471YU9