Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(@capacitor/share): share text to the clipboard copying as url encoded string #2031

Open
umairrafiq1133 opened this issue Feb 16, 2024 · 3 comments
Labels
platform: ios type: bug A confirmed bug report

Comments

@umairrafiq1133
Copy link

Bug Report

Plugin(s)

Capacitor Share 5.0.7

Capacitor Version

馃拪   Capacitor Doctor  馃拪 

Latest Dependencies:

  @capacitor/cli: 5.7.0
  @capacitor/core: 5.7.0
  @capacitor/android: 5.7.0
  @capacitor/ios: 5.7.0

Installed Dependencies:

  @capacitor/cli: 4.8.1
  @capacitor/android: 4.8.1
  @capacitor/core: 4.8.1
  @capacitor/ios: 4.8.1

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.'
});

@umairrafiq1133
Copy link
Author

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 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
@IT-MikeS IT-MikeS added the type: bug A confirmed bug report label Feb 23, 2024
Copy link

ionitron-bot bot commented 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.

@OS-ricardomoreirasilva
Copy link
Collaborator

@umairrafiq1133, we're not able to reproduce the issue. Is it possible to provide us with a video showing this happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: ios type: bug A confirmed bug report
Projects
None yet
Development

No branches or pull requests

4 participants