My setup:
I have several menu buttons that are used for navigation to other pages. For two of these buttons I want to pass not just the (static) page name, but also one or more dynamic values for the page path parameters. I use a formula for that.
Furthermore, once the target-page is loaded, these page path parameters are used in a GET API call (as parameters) to determine what to get from my table in the database.
My issue:
This works in the sense that I end up on the correct page and the correct data gets loaded from the API and rendered on the page. However, for some reason, on the target-pages where I send the extra page path parameters, the page loads two or three times. In terms of performance it is not really an issue, but it is weird user experience if I just come arrive on page B from page A and when I click the previous page button I stay on page A, because I'd have to click it two (or three) times.
I know that when page path parameters change this always counts as a page visit in the browser history. But that's the thing, the value of the whole url doesn't change (except for a query, but that doesn't shouldn't make a difference).
I have played around with turning off the auto-fetch on the API that uses the page path parameters for its GET call, but it doesn't seem to make a difference.
So what am I missing here or is there something that I'm just doing plain wrong?
Thanks in advance π