UPDATED
event.preventDefault() : If this method is called, the default action of the event will not be triggered.
You should use JQuery method event.preventDefault() to prevent default href
and then redirect to homepage.
HTML :
<a href='http://homepage/cart' class='update'>Update</a>
<a href='http://homepage/?removed_item=1' class='remove'>Remove</a>
JS :
$(".update, .remove").click(function(e) {
e.preventDefault();
window.location.replace("http://homepage/");
});
If you want to redirect after finishing process, you have to use JQuery function $.get().
JS :
$(".update, .remove").click(function(e) {
e.preventDefault();
$.get($(this).attr('href'),function(result){
window.location.replace("http://homepage/");
})
});
Hope this helps.