Link in the Customer Notes section is broken in the Invoice PDF

Link in the Customer Notes section is broken in the Invoice PDF

I am creating an invoice via the Invoice API (I guess it doesn't matter in this case how the invoice is created) and I am putting a link in the customer notes. When the invoice is exported to pdf, only part of the link is picked up as the URL.

Regards
Moiz Tankiwala
Smart Training & IT Solutions