Potentially just using ``` window.history.back()``` could be sufficient?