@f1v wrote:
Hi,
I have been having an ongoing problem which I haven’t found any clean solutions to, so I decided to repost this with a video demo and github code to better demonstrate how this actually appears to be a problem with routing or caching? Not sure.
To keep it very short, here are the steps:
- Login screen, click “Login”
- On successful login you see a number of users
- Click “Person A”
- “Person A” is found in “Case X”
- Click “Case X”
- Inside “Case X” obviously we see linked “Person A”
- Click “Person A” again
- Now click “Back” button.
Here is a problem. I expect the back button to take me to Case step #6.
Instead, it takes me all the way back to step #2.
YouTube demo: https://www.youtube.com/watch?v=9RvbZQp8kD8
Github repo: https://github.com/f1vlad/ionic4routing
The cleanest workaround I found was to pass a url param from “Case X” to “Person A”. If param exists, back button would take user from person to case; otherwise, if no location history exists, fall back on default.
Posts: 1
Participants: 1