[Adalo Tutorial] How to Share App pages & How to use url parameters for deep linking in a Web app

Hey guys, I whipped up a tutorial about sharing pages and using our JS component for deep linking in WPA’s

Code from Video:

const urlSearchParams = new URLSearchParams(window.location.search);
const params = Object.fromEntries(urlSearchParams.entries());

if (params.id){
  return params.id;
}
else {
  return "Sorry we couldn't find this project";
}
7 Likes

Thank you, I was needing this… you are a genius… always contributing! …

I have a query, I am using the social component that you made, how can I make it open the phone’s contact list when I want to share on WhatsApp?

This is so cool!

1 Like

Thanks Santiago. For the social component, I’m not sure actually. That’s a really good question.

You’d have to ask someone who’s stronger in react than I am.

2 Likes

Good thing, because I put an input so each user must write the whatsapp so that the button takes the data from the input… hopefully it can be done that pressing the button opens the agenda, meanwhile I found that idea!