Hey, I have a page called products. It has a optional URL for the product ID.
I conditionally hide/show the sections depending on if the URL parameter is present.
This worked well in the editor, but when I publish the app to live mode, the URL parameter is defaulting to ‘undefined’, therefore the app thinks it is present (although obviously incorrect).
It looks like this
https://***********.weweb-preview.io/products/undefined
If I try to manually remove the URL parameter, the page doesnt exist.
Just ran into this problem and it’s particularly frustrating because it works fine in the editor but breaks in prod, and there is no warning anywhere that path parameters are not optional.
Using query strings instead should work for my use case but now I have to change a TON of dependencies accordingly. Super annoying!