When selecting an attached file like a PDF, Cwicly links are broken.
(Tested with buttons, div, etc, so it does not seem to be block related.)
NOTE: Existing blocks on a post don’t seem to be affected, it only happens with new blocks.
WORKAROUND: It works when directly entering the file URL.
→ Edit link field with pencil icon, copy URL, remove link, edit field, paste URL, select proposed link.
The file attachment URL was considered default behaviour by WordPress up until 6.4, not the media URL.
This is why your link directs users to the attachment page and your report was not considered as justified.
Now that 6.4 draws a more specific line on what attachment pages are and that their use is no longer a default, we will make the appropriate changes in the next update.
I can also confirm the issue with the link removal.
OK sorry, I hardly never used manual (popup) link to attachment file before in Gutenberg. I only used the file block, which opens the media library to select a file. So I didn’t even remember WP behaviour with the link popup and file attachment, if I ever knew it.
Sometimes I have copy-pasted pdf text links from media library in link popup but without using the search/completion tool, so I guess for me everything was working as I expected, hence my surprise when using the input completion
When attachment pages are enabled, the attachment link will redirect to the attachment page. When disabled, it will redirect to the media/file directly.