Dynamic Preview URL is stripping search params when clicking "View Live Page"

We can’t use dynamic preview URLs with search params in the URL, even though in the docs for dynamic preview URLs it shows examples that have search parameters in the preview URL.

In the editor the parameters are used, but once clicked on “View Live Page” under the eye icon they are stripped out completely.

We tried to use the URL hash, but if it’s behind a search param it would also be stripped out (like ?name=${content.name}#${content.id}). Also on field changes it hangs up the editor when there is only a hash and no search param.

This seems like a bug because in the docs there are examples with exactly this.

Detailed steps to reproduce the bug

  • Create a page or section model
  • use dynamic URL with search parameters like ?id=${content.id
  • publish
  • Click on eye icon on top right and then on “View Live Page”

Hello tchok,

Would you be able to share with me your Public API Key as well as where you’re implementing the dynamic preview URL code?