LPS-39596 redirect when editing, stay when creating