Gabriel_L
(Gabriel L)
October 25, 2021, 9:02am
1
Is there somewhere an example of a back/forward browser navigation implementation that I could use because it gives my clients a big headache. Just to be clear, I am talking about the browser’s back/forward buttons, not some custom in-app buttons.
Thanks!
Hi @Gabriel_L ,
You can achieve this by using a combination of WebSession.SaveState method and the WebSession.HashTagChanged event.
I like to have a HashTag constant on each WebPage, to avoid typos, but that’s up to you =)
Here is an example, hope this helps:
https://we.tl/t-DaWUp6iPs1
PS: As an alternative, you can also block browser’s back button .
1 Like
Gabriel_L
(Gabriel L)
October 26, 2021, 1:13pm
3
Thanks! I’ll have a look at your solution.
Unfortunately blocking the back/forward buttons are not an option…
Sure, then SaveState and HashTagChanged will do the trick
Gabriel_L
(Gabriel L)
October 27, 2021, 5:16am
5
Thank you, Ricardo. It works perfectly.
1 Like
No worries, happy to help! =)