So I have an app that works great but sometimes via direct links people can get to pages that have back buttons but no history. I am wondering if it would be possible to add a global option that would control how a back link behaves if there is nowhere to go back to (eg: load /home).
I realise I can force a url but writing the logic that checks if the history is empty on every back and then toggles force is quite tedious.
This is a (multiple allowed):
So I have an app that works great but sometimes via direct links people can get to pages that have back buttons but no history. I am wondering if it would be possible to add a global option that would control how a back link behaves if there is nowhere to go back to (eg: load /home).
I realise I can force a url but writing the logic that checks if the history is empty on every back and then toggles force is quite tedious.
Thanks!