Skip to content

Commit

Permalink
chore(website): Update Orbit deep link route (#548)
Browse files Browse the repository at this point in the history
* chore(website): Update Orbit deeplink route

* Update deeplink to use url query param

* Use triple slashes
  • Loading branch information
gabrieldonadel committed Jan 29, 2024
1 parent 368d54b commit f820185
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions website/src/client/utils/orbit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ export function useOrbit() {
return;
}

const deeplink = `expo-orbit:///snack/?url=${encodeURIComponent(experienceURL)}`;
if (isRunning) {
const response = await fetchLocalOrbitServer('open', { url: experienceURL });
const response = await fetchLocalOrbitServer('open', { url: deeplink });
if (response?.ok) {
return;
}
}

customProtocolCheck(experienceURL.replace('exp://', 'expo-orbit://'), onFail);
customProtocolCheck(deeplink, onFail);
},
[isRunning]
);
Expand Down

0 comments on commit f820185

Please sign in to comment.