return_to tag not working

kubrauzun
Shopify Partner
4 0 0

Hi,

 

We have a currency form with a return_to tag set to "back". See example:

 

 

 

{% form 'currency', return_to: 'back' %} 
{{ form | currency_selector }} {
% endform %}

 

 

 

This works sometimes, however, in some cases, it will take the customer to the following path instead /cart. I have tested with a relative path e.g., /collections/earrings, and same issue occurs. I can replicate the issue always in incognito and sometime in standard browser. Can someone explain what is causing the issue? Does the return_to tag not work in the currency form? Thank you 🙂

Replies 3 (3)

ADS-ATLAS
Shopify Partner
2 0 0

You have any solution ?? i'm faced the same problem in 

storefront_password form
kubrauzun
Shopify Partner
4 0 0

Unfortunately, haven't found a solution and Shopify Support can't help. If you end up finding a solution, please let me know. 

Slokie
Shopify Partner
14 2 6

I'm facing this issue now with a custom app I've built. I'm just trying to do this with a form in the template page that houses my app using basically the same approach you have here. It's been a year since you last posted so I'm just hoping you found some other workaround since it doesn't appear Shopify has this issue prioritized.

 

FYI I'm trying to use the Shopify cred system to have customers log in post purchase and customize their order. It works, but the login form always brings them to the Shopify account page instead of back to the app, which really not great... actually has me looking at moving to a competing platform for the first time.