I’m having trouble setting up ui.paths for my payment customization function.
My app is not embedded and redirects to my own domain. I want to detect when a merchant is redirected from the function setup page by using parameters like :functionId.
Hey @anymnous - thanks for reaching out! Just want to clarify, are you looking at redirecting users to an external site through the Function? My understanding is those relative UI paths are intended for embedded apps only, but. just wanted to confirm your use case here before I look into this further on my end to confirm expected behaviour.
Yes, I’m looking to redirect users to an external site(to my app url on function setting UI page) through the Function. My app is not embedded, so I was hoping to use a relative UI path.
I understand that relative paths might be limited to embedded apps, but I’m hoping to confirm whether there’s a supported or recommended approach for non-embedded apps in this scenario.
Looking forward to your confirmation and any suggestions you might have.
Thanks for clarifying @anymnous - just following up to let you know I’m still digging into this, I’ll loop back with you once I have an exact answer for you though
Hey @anymnous, just following up here, thanks for your patience while I dug into this!
I was able to get in touch with our product team on this and we’ve confirmed that external redirect URLs are not supported for Function UI paths, and at the moment, there aren’t any workarounds available. The UI paths configuration is specifically designed to work within the Shopify admin interface for embedded apps only.
For non-embedded apps working with Payment Customization Functions, the redirect behavior using UI pathing you’re looking for isn’t something we currently support or plan to enable in the near future.
I definitely understand this isn’t the most ideal answer, but I wanted to get back in touch to share a definitive answer so you can plan as needed.
Let me know if I can clarify anything on my end here, happy to help further as needed!