I’m trying to pass some parameters using the optional params feature of the navigateTo function. On a deployed app, this works as expected. However, I’m not able to pass parameters while editing the same app. In edit mode, appsmith.URL.queryParams returns only {“branch”:“main”} on the new page (it returns {“branch”:“main”, “layerNumber”:“2”} on the deployed app, as expected). Is it possible to pass parameters in edit mode? Or am I not able to do this by design?
I also noticed that you can’t pass 0 (zero) as a parameter value (e.g. {layerNumber:0} does not pass anything). This is apparently a known bug, but I’m adding it here in case this post helps anyone in the future.