Refactored redirect path in post route