I need to execute an API call when user clicks on the back button in the browser and then redirect to a route based on backend response. I've read about location API but I can't figure out how to distinguish between url changes due to clicks on link and url changes due to browser back button. Any suggestion is really appreciated.
Aucun commentaire:
Enregistrer un commentaire