Now that the new design experience is starting to roll out I've noticed an issue with one of our apps that I believe must be a bug with the new theme customizer:
When you're customizing your theme with the new customizer you can redirect to a page within the store (including app proxy pages) but if you include any query parameters in the redirect URL the redirect fails and Shopify throws up the link to the troubleshooting page (https://help.shopify.com/en/manual/online-store/os/using-themes/change-the-layout/troubleshooting).
I've tried changing:
window.location.href = "store.myshopify.com/apps/appproxy/endpoint?parameter=12345"
window.parent.location.href = "store.myshopify.com/apps/appproxy/endpoint?parameter=12345"
This redirect works:
window.location.href = "store.myshopify.com/apps/appproxy/endpoint"
I have a hard time imagining that this is intended behaviour. Adding query parameters does not change the fact we are redirecting within the shop which, according to the documentation, should be supported.
Anyone else notice this?