I filed a bug as follows
https://bugs.launchpad.net/calibre/+bug/1863160
There you can find the example html input file for conversion to azw3
I use debian unstable package: 4.99.4+dfsg+really4.10.0+py3-2
Interestingly, when using the current Windows calibre, the links are correct.