Can we navigate to the same page on button click with different query params?
The navigateTo
function on Appsmith accepts the same page for redirection and query params you wish to pass.
If you’re on Page1
and want to navigate to the same page on a button click with query params; you can update the button’s onClick
property to the following:
{{navigateTo('Page1',{key: 4})}}
When the button is clicked the page will be navigated to the same Page1 with key:4
as query params.
The following question is also discussed on How Do I Do X on Appsmith Session on our community call. Watch it here: How Do I Do X? - YouTube