Download button generating wrong url

V0.47.0 has broken the download button. The /api/card POST request is ignoring the site url.
Which, in our case, includes a path.

I'm having the same issue since 0.47