Deeplink - was working - now it doesn't?

Hello everyone.

So I was working on implementing deeplinks in our ionic app. It is written in Vue, and our website is in Nuxt.

I followed all the procedures (generated keystore, added a file to .well-known to our Nuxt website, everything per documentation).

And It was working.

In the app we have a /faq route - but did not have /faq route on our Nuxt website. So that when I click on the link on the website - it redirected me in the app and opened /faq page. Everything was working.

Then I wanted to check out what will happen if I have /faq page on the website as well. Simply added it, and checked - turns out if you have both /faq in the app and on the website - the website page will be opened, and not a deeplink.

Then, I deleted the /faq page on the website, to get back to deeplink - but not, when I click on that link, it just says That webpage is not found. Why is that?

I did not change anything apart from adding /faq page on the Nuxt website and then deleting it…

How to make deeplinks work again!?!?!?

We found the solution with the team.

// OLD - Which is only working Android 11 or before

<data
  android:scheme="https"
  android:host="domain.name"
  android:pathPrefix="/videos" />

// NEW - Which is working on all including Android 12

<data android:scheme="https" />
<data
    android:host="domain.name"
    android:pathPrefix="/videos" />

But I was wondering, how to make it work not for specific links
but for all links - so that we won’t have to reupload the app to the stores every time we decide to change something

1 Like