Deep Linking to a Specific State in My App

Hi there. I’m going to integrate the Intercom.com chat service into the app I’m building with WeWeb and configure Intercom so that it shares authentication with the app.

I want to be able to send deep links through Intercom to a specific user and have that deep link take the user to an exact spot in the app.

For example… Let’s say we have member profiles in the app. And each member profile contains a grid of photos uploaded by that member. When you click on one of the photo thumbnails in the grid, it shows an enlarged version of that photo in a modal window.

The kind of thing I’d like to do (this is just one example) is have a user be able to click on a deep link that’s been sent to them and have the app immediately take them to the expanded modal for a specific photo from a specific member profile.

Does WeWeb support deep links? And can a deep link take a user to a very specific state of a WeWeb application?

Thank you in advance, smart people.

Hi @tedpearlman,
this is totally doable with weweb.
You can either use query variable or route parameter for this.

For query variable, create a variable and marked it as type “query”. Then base your display logic on this variable. It will automatically update the url if the value change, and will set the initial value depending on this as well (query are stuff after ? in an url). The best usage for this are active filters, selected elements, modals etc

For route parameter, you need to defined in when creating a page, and add a pattern to your route name. Best usage for this are: a path to a specific folder of someone, a specific product (in general, anything more data related, while query are better for ux logic)

Thank you @aurelie !