Does anybody know if it’s possible to ‘Go to’ the current page, without explicitly specifying the page name?
I would like to use the ‘Go to’ action from a Reusable element, and because this Reusable element is used in multiple pages, I would like not to ‘hardcode’ the page.
I could have a condition per existing page (is current page the X page?), and Go to that X page, but I was wondering if there was a cleaner and more flexible approach.
If I use the ‘Go to external website’ action, and put the current page, does it just reload (and not refresh) the current page, or it does refresh it?
Thanks!
Edit: yes, ‘Go to external website’, even on current url, does refreshes the page.
This is exactly what custom states are for, you set them up on the reusable element to receive a state, and set that state as part of the display reusable element workflow.
Not sure if you managed to sort this, but I guess this would work, although obviously it would fail in dev mode as it already contains the ?debug_mode variable so you’d need to add another step for this condition (This url&variable=… would work when Isn’t live version is “yes”)
Yes, this would work, but the problem is that the ‘open an external website’ action refreshes the page (even if it’s the current page), whereas the ‘go to’ action does not refresh the current page (merely reloads it).