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

[menu-bar] Refactor deep-link routes to comply with the URL spec #151

Merged
merged 5 commits into from
Jan 29, 2024

Conversation

gabrieldonadel
Copy link
Member

@gabrieldonadel gabrieldonadel commented Jan 26, 2024

Why

As Cedric pointed out on expo/snack#548 (comment) our current deep-link format implementation does not comply with the URL spec.

How

This PR refactors our deep-link routes to use the url query parameter to specify URLs instead of just appending them directly to the path. In order to maintain backward compatibility with the formats that already live on our website this PR just changes the /route deep links.

This also add unit tests for all the currently supported types of URL

Test Plan

  • yarn test
  • Launch builds from expo.dev
  • Launch Snacks from both prod and local

@gabrieldonadel gabrieldonadel marked this pull request as ready for review January 26, 2024 20:43
@gabrieldonadel gabrieldonadel force-pushed the @gabrieldonadel/refactor-deeplinks branch from 42a0b9d to 6e4e59b Compare January 29, 2024 14:43
@gabrieldonadel gabrieldonadel merged commit 40a16db into main Jan 29, 2024
1 check passed
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/refactor-deeplinks branch January 29, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants