You're right! Sorry for the noise then. I'm not sure why I believed that it had worked before. I've now managed to hack around the problem by selecting the link first, then pressing the right arrow key on the keyboard, and only then copying the selection. Even if there's nothing after the link, this method still makes Joplin copy the full underlying link code.