You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
await Share.share({
title: 'Spring Aqua Water',
text: 'https://springaqua.com/i/YABoOiWX Here is a QUOTE link to our products for the zip/postal code that you provided. It also includes the TOP most common questions and is very informative.',
});
If copied to clipboard using this share options, it converts text to url encoded string. Instead of copying text as it is.
It should copy plain text as it is 'https://springaqua.com/i/YABoOiWX Here is a QUOTE link to our products for the zip/postal code that you provided. It also includes the TOP most common questions and is very informative.'
Code Reproduction
await Share.share({
title: 'Spring Aqua Water',
text: 'https://springaqua.com/i/YABoOiWX Here is a QUOTE link to our products for the zip/postal code that you provided. It also includes the TOP most common questions and is very informative.'
});
The text was updated successfully, but these errors were encountered:
If I change the url to any other url like https://springaqua.com or http://example.com, it works correctly. But as I add slash at the end, it starts doing url encoding to whole text.
IT-MikeS
changed the title
Capacitor Share plugin copying text as url encoded string
bug(@capacitor/share): share text to the clipboard copying as url encoded string
Feb 23, 2024
This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.
Bug Report
Plugin(s)
Capacitor Share 5.0.7
Capacitor Version
Platform(s)
IOS 17
Current Behavior
await Share.share({
title: 'Spring Aqua Water',
text: 'https://springaqua.com/i/YABoOiWX Here is a QUOTE link to our products for the zip/postal code that you provided. It also includes the TOP most common questions and is very informative.',
});
If copied to clipboard using this share options, it converts text to url encoded string. Instead of copying text as it is.
https://springaqua.com/i/YABoOiWX%20Here%20is%20a%20QUOTE%20link%20to%20our%20products%20for%20the%20zip/postal%20code%20that%20you%20provided.%20It%20also%20includes%20the%20TOP%20most%20common%20questions%20and%20is%20very%20informative.
Expected Behavior
It should copy plain text as it is 'https://springaqua.com/i/YABoOiWX Here is a QUOTE link to our products for the zip/postal code that you provided. It also includes the TOP most common questions and is very informative.'
Code Reproduction
await Share.share({
title: 'Spring Aqua Water',
text: 'https://springaqua.com/i/YABoOiWX Here is a QUOTE link to our products for the zip/postal code that you provided. It also includes the TOP most common questions and is very informative.'
});
The text was updated successfully, but these errors were encountered: