At work have a single-page web application developed using Alpha Anywhere and I have been tasked with figuring out how to overwrite the browsers native Back/Forward navigation functionality so that when users hit the back button, they go back to the previous page they were on within the app instead of back to the login screen. I'm still pretty new to using Alpha and to being a developer, so this is a problem I have no had to solve personally before, but I know it is a common issue due to all the single page web applications that exist today. I found the historyBack and historyForward methods in the Alpha documentation, so my thought was that perhaps if I figured out how to overwrite the native Back/Fwd browser functionality, I could use these methods in their place. Am I on the right track there? I know there are a lot of libraries for doing this sort of routing in React and other javascript frameworks, but I'm having trouble figuring out how to implement things like that, which have instructions that call for installing with NPM and then bundling in with WebPack, from within Alpha.
I am certain that a person out there has tackled this problem before and implemented a solution within Alpha, and I was hoping that someone who had could guide me in the right direction. I don't necessarily even need to save the user's state in terms of what options they may have selected on a given page that changed the page dynamically. That would certainly be a nice touch, but all I'm being asked for right now is to make it so when the user clicks on Back or Forward in their browser or using their mouse that this behaves as they would expect on a normal, old school webpage and takes them back or forward within the app and not just back to the login screen.
Any help on this issue that can be offered would be greatly appreciated. Thank you in advance.
I am certain that a person out there has tackled this problem before and implemented a solution within Alpha, and I was hoping that someone who had could guide me in the right direction. I don't necessarily even need to save the user's state in terms of what options they may have selected on a given page that changed the page dynamically. That would certainly be a nice touch, but all I'm being asked for right now is to make it so when the user clicks on Back or Forward in their browser or using their mouse that this behaves as they would expect on a normal, old school webpage and takes them back or forward within the app and not just back to the login screen.
Any help on this issue that can be offered would be greatly appreciated. Thank you in advance.
Comment