Problem with page-routing and slugs resulting in errors

What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets)

I have a subpage like /info/[slug] and want to filter my api call according to the slug to display content on that page.

But it seems like the slug is not available as data in the dynamic data dialogue (even though I typed something in the slug property in the editor). If it is called like before using $ctx.params.slug it gives the error “$ctx is not defined”.

Hi @robin_thier, we can look in to this. Can you provide your project ID, or the Plasmic studio URL?

Thank you! Of course, the ID is tFXqSU6Zio5Y1N8Q9WEHhk and the issue is on the page “info/[slug] when you try to access the slug property as dynamic data (for example inside the api call).

I’m still looking into why it’s happening, but the query access in the dynamic img on that page appears to be crashing the Studio data context. If you temporarily remove that I believe the slug will be available in your query.

As an aside, we will be releasing an updated way to do data queries soon, which can be previewed by appending &serverQueries=1 to your project URL (or ?serverQueries=1 if it’s the first query param). It may already be easier to use and more stable than current data integrations.

Thank you very much! I disabled the img and that fixed it for me. Right now I’m playing around with the new data queries to see if the error persists.

No problem, I haven’t been able to reproduce your specific issue yet, so I’m not sure whether it will persist with the new queries.