I’m not sure if you can achieve that with a box, but if you want to add a background color to your links you can combine a show rule with highlight:
#show link: it => highlight(fill: blue, it)
Breakable link with background:
#link("https://typst.app")[#lorem(50)]