Fix for: Invalid redirect after resource save