Correct redirection handling with POST requests