Incorrect redirect when creating files/directories for ambiguous ref

The following discussion from !122145 (merged) should be addressed:

Also with the redirect_with_ref_type flag enabled trying to create a new file as in the screen recording will redirect instead of rendering the new file form.