I'm currently making a website that answers questions, and I have a problem. That is, for example, when answering to the second question, but the user wants to go back to the previous question to edit the answer, there are 2 ways:
- Use your browser's undo button
- Change the URL
ex: question?id=2 change to question?id=1
The web will reload the previous question and they can change the answer.
I have blocked method #1, but if the user changes the URL, I don't know how to block that? I want to ask for your solution, I am using js, it would be even better if vue3 ts is used.