Hi there
We’re trying to redirect users back to the previous page after they successfully log in using the Multipass URL.
We set redirect code as per below
let redirectValue = ‘content previous page url before login page’;
let separator = multipassUrl.includes(‘?’) ? ‘&’ : ‘?’;
window.location.href = ${multipassUrl}${separator}return_to=${encodeURIComponent(redirectValue)}
For ex. https://yourstore.com/account/login/multipass/?return_to=/checkout
This works perfectly in our development store, where users are redirected to the correct page after login.
However, in our Shopify Plus production store, users are always redirected to the homepage instead — even though we can confirm that the return_to parameter is correctly added to the Multipass URL.
Has anyone else experienced this behavior?
Is there an official way or workaround to make return_to work with Multipass on Shopify Plus?
Any help would be greatly appreciated.