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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deeplink does not have full support for URLSearchParams #14016

Open
LitoMore opened this issue Aug 14, 2024 · 0 comments
Open

Deeplink does not have full support for URLSearchParams #14016

LitoMore opened this issue Aug 14, 2024 · 0 comments
Labels
api Issues related to API bug Something isn't working

Comments

@LitoMore
Copy link
Contributor

LitoMore commented Aug 14, 2024

Description

Hi team, the deeplink parameter decoder seems not working correctly. Here is an example:

// Create a parameter query
new URLSearchParams({ context: '{"foo": "bar"}' }).toString()
open 'raycast://extensions/author/extension/command?context=%7B%22foo%22%3A+%22bar%22%7D'

Raycast cannot parse this URL parameter due to there is an space between foo": and "bar. Logically speaking, the JSON string should be an valid parameter.

Also this,

new URLSearchParams({ context: '{"foo":"b a r"}' }).toString()
open 'raycast://extensions/author/extension/command?context=%7B%22foo%22%3A%22b+a+r%22%7D'

Raycast parsed this parameter query to wrong format.

It returns a {foo: "b+a+r"}.

I re-posted the issue here to keep a backup because messages older than 90 days are hidden on Slack.

Here are some replies under the thread:

References

Related

@LitoMore LitoMore added api Issues related to API bug Something isn't working labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues related to API bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant