It also no longer distinguishes the case of internal-only paths, which was often wrong anyway. Closes ticket 27402.