I've got a rather complex HTML form that users fill in and submit. On submit we redirect to a third party Web site, generating that redirect parameters depending on the form values. Then, if users aren't satisfied with the results on the third party Web site, they press the browser's "Back" button, and return to the form. At this point they'd expect to see the form controls in the state they left them before the redirect.
In Backbone.js I could call app.navigate("/form-view/STATE-OF-THE-FORM-SERIALIZED") before the redirect, and the form's state would be saved to the browser's history – in the URL fragment. How would I go about implementing the same behavior for AngularJS? I've read about $location service, but it doesn't provide that kind of functionality. When I call path(SMTH) on it, it always triggers the route handler; and that's not what I want, as I must redirect to an external page at that point.