Capacitor Share() `Url` parameter not working properly

let shareRet = await Share.share({
      url: 'http://mywebpage.test/wp-content/uploads/2021/04/p1.pdf'
    });

although I have passed a PDF URL in the URL parameter, in the sharing prompt it shows as a string.