Hello @yankiara,
This has been addressed in 1.3.4.1 and now relies on the wp_attachment_pages_enabled
option described at Changes to attachment pages – Make WordPress Core.
When attachment pages are enabled, the attachment link will redirect to the attachment page. When disabled, it will redirect to the media/file directly.
Cheers,