Shopify app proxy only works on root/home page of store. Nested path returns 404

Solved

Shopify app proxy only works on root/home page of store. Nested path returns 404

BenKissi
Shopify Partner
9 1 2

I have added an app proxy, which works fine on a stores home page
eg: https://test-store.myshopify.com

But when you navigate to a nested path or other pages it returns 404
eg: https://test-store.myshopify.com/products

Accepted Solution (1)

BenKissi
Shopify Partner
9 1 2

This is an accepted solution.

Solved it. this was because I was making the request with the root url so it was using the url of whatever page it was on. so I made the request including the origin and everything works fine regardless of the page I am on

View solution in original post

Reply 1 (1)

BenKissi
Shopify Partner
9 1 2

This is an accepted solution.

Solved it. this was because I was making the request with the root url so it was using the url of whatever page it was on. so I made the request including the origin and everything works fine regardless of the page I am on