Hi everyone,
I’m building a custom bundling app where each bundle is created as a dummy product in Shopify. All the actual content (UI, data, pricing) is loaded via metafields, and the real experience is powered by my app.
What I want to achieve is:
When a customer visits the product URL, e.g.,
/products/test-bundle
…it should automatically redirect to:
/apps/my-app/bundle/test-bundle
(using App Proxy), without any client-side JavaScript redirect.
I’ve seen apps that do this. The redirect appears to happen instantly, without a flash of the product page. So I believe it’s not a client-side <script>
redirect or meta refresh
.
My Questions:
- How can I implement a redirect like that?
Is there a way to trigger a server-side redirect from the product URL to the app proxy route? - Is this being done using a specific product template (like
product.bundle.liquid
) with some advanced Liquid logic? - Or is there a way to configure Shopify to automatically redirect dummy products to the app proxy?
I’ve already set up the App Proxy in the Partner Dashboard. It works fine when accessed directly at /apps/my-app/bundle/:handle
.
Any insights or examples from other devs who’ve handled this kind of flow would be really helpful!