EASDK: app path prefixed by '/admin' gets removed

Shopify Partner
244 0 17

We at Reamaze have a Shopify App where the path is '/admin/....', for example, http://www.reamaze.com/admin/settings

When the app is loaded in the Shopify Admin, and when I navigate within the Reamaze app (for example the settings page which lives in subdomain.reamaze.com/admin/settings, the address bar becomes 'subdomain.myshopify.com/apps/reamaze/settings', instead of 'subdomain.myshopify.com/apps/reamaze/admin/settings'.

This causes some problems, especially with the back button or refreshing the window. Refreshing the window causes 'subdomain.myshopify.com/apps/reamaze/settings' to load, and Shopify then loads 'subdomain.reamaze.com/settings' in the embedded app iframe, which is not a valid url for us.

Any ideas?

Reamaze - Customer Communications Platform for Shopify at https://apps.shopify.com/reamaze.
0 Likes
Highlighted
Shopify Staff
Shopify Staff
591 0 45

Do you have control over the routes, could you perhaps rename it? I believe we are just being aggressive and chopping anything off before admin.

I'll file a bug about this, but changing the name might be the quickest solution for the time being.

0 Likes
Shopify Partner
244 0 17

Hi Chris,

Thanks for the response. It would not be easy or practical for us to rename our routes unfortunately, since a majority of our app lives behind that route and our usage beyond the Shopify app uses that route too. "/admin" is the most common admin route used by apps, and I would be surprised if we are the only ones with this issue.

Are there any updates regarding a possible fix for this? I believe there are other ways to deal with security concerns with path hacking and access to the shopify /admin route, if that was the reason behind disallowing '/admin' for apps.

Cheers

Reamaze - Customer Communications Platform for Shopify at https://apps.shopify.com/reamaze.
0 Likes
Shopify Staff
Shopify Staff
591 0 45

This has been patched and the changes will be going out soon.

Thanks for reporting the issue :)

0 Likes
Shopify Partner
244 0 17

Awesome sauce! Thanks Chris!

 

Reamaze - Customer Communications Platform for Shopify at https://apps.shopify.com/reamaze.
0 Likes