Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Conflicing App Proxy Paths

Conflicing App Proxy Paths

Markus_Arndt
Shopify Partner
14 0 1

Hi guys,

 

I was curious what would happen if two apps use the same app proxy subpath on the storefront, but want to forward to different Proxy URLs. Because I couldn't find anything about this online, I decided to try it out and share my results.

 

2019-08-12 20_16_13-Shopify.png

 

Scenario:

  • App1 claims app proxy path /apps/app_proxy_conflict/ and redirects to URL1
  • App2 claims app proxy path /apps/app_proxy_conflict/ and redirects to URL2
  • A shop installs both apps

 

Result:

  • The app that installs first wins and successfully claims the subpath, i.e. /apps/app_proxy_conflict/ redirects to URL1
  • After uninstalling App1, the app proxy is removed and /apps/app_proxy_conflict/ goes 404, which breaks App2 😞

 

Let's see if this helps anyone in the future. 😉

 

Regards
Markus

 

 

Reply 1 (1)

vomithatsteve
Shopify Partner
8 0 0

I believe they may have updated this behavior since your post.

 

I was testing this last week, and in my case, App2 ended actually using /apps/app_proxy_conflict-1/ as its proxy path.