I have a modal popup that changes the URL when opened. When the user closes the popup, I want to return to the previous URL, but I do not want to start the route associated with this URL, because it will reload my collection and display the view, etc. Is there a way to call window.history.back()
without starting a route, or is there an equivalent to this base unit?
The only solution I can think of is to keep the previous route, and then when the modal call is closed
Backbone.history.navigate(route, {trigger: false, replace: true});
but this seems like a difficult way to solve a simple problem.
source share