I'm trying to redirect without losing the history in Firefox. I have used the next without success:
window.location = "http://example.com";
window.location.href = "http://example.com";
window.location.assign("http://example.com");
Also tried using 'document' instead of 'window'.
I get redirected, but the history is not added (or deleted) from the browser
Any ideas!?
Note: I'm not calling this function directly, I'm calling it after a succesfull jQuery Ajax request to the server:
$.ajax({
type: "POST",
...
success: function (data) {},
});
the variable data contains the JS redirect function (window.location.href = "http://example.com"
)