Update checkout redirection URL for the dynamic state.
Status
Assign
type
effort points
Start Date
Apr 5, 2022
End Date
priority
tags
Github PR
While testing the code for the product, I found a minor bug as it kept redirecting to checkout on the development store. The redirect URL was a static hard-coded string. I modified it to make it work for production, but we need to make it dynamic to make it easier to test, as multiple stores would be used for testing during development.
The solution is to take the root URL from the browser and append the checkout path.