Fixed redirection issue when creating a new item