Select to view content in your preferred language

"View" link to open Instant Apps is opening the wrong app

710
3
01-25-2024 09:16 AM
SarahMikkelsenMDEM
New Contributor

When I click from My Content to one of my Instant Apps and hit "view" to open the app, it takes me to an app that is not mine. The url listed in the app info page is also incorrect. In order to find the correct url to open the app, I need to configure the app, publish it, and click Launch or Copy Link. 

3 Replies
Jelle_Stu_PR
Frequent Contributor

Did you check the data source URL under the settings of the instant app?

Jelle_Stu_PR_0-1706208375347.png

Most likely this URL is invalid/broken and then it will redirect you to the random instant app. I never understood why it redrects you to this random Instant App but I do know this is what happens when the data source URL is not refering to the webapp id of the corresponding app.

0 Kudos
SarahMikkelsenMDEM
New Contributor

How do I fix the URL when it is generated by Esri?

0 Kudos
Jelle_Stu_PR
Frequent Contributor

in the settings of the item, go to data source and change the URL using your correct portal/agol url and correct item id. Maybe use another web app to see how the URL is built up.

Also make sure that the Purpose below is set to 'Ready to Use' and the API to 'JavaScript'.