Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're experimenting with the new magic-link based customer accounts login feature (the one described here https://help.shopify.com/en/manual/b2b/b2b-customers#customer-accounts under "New customer accounts").
My question is, is there a way to redirect the users back to a specific page after login?
With the new flow, after logging in, customers end up at a page on the new B2B login portal (e.g. `xxx.account.myshopify.com` )
There is a big blue button which allows them to go back to the store.
1) Is there a way to customize where that button redirects to on the store?
2) Or, even better, is there a way to have a login flow which redirects directly to the store at a particular URL after logging in through the new flow? i.e. skip the new `xxx.account.myshopify.com` page entirely and go to a store page of our choice?
I'm also stucked in the same issue, anyone can help.
A redirect for "New Customer Accounts" after login would be very helpful. Seems like this would be a priority since the current UX makes the assumption that you have already purchased. That is not the case oftentimes.
Providing a redirect would allow a business to offer identity-based product marketing to help the customer make their purchasing decision. That would help boost store sales.
Have you found a solution to this? I'm trying to accomplish your second option - an automatic redirect.
+1 – option to provide `redirect_url` would be super helpful
+1 option to provide `redirect_url` would be super helpful 🙂
Hello we just set up shopify and are stuck with this same issue.. did you find a way to fix it
We know this is an old topic. Possibility to redirect users after login with new Customer accounts was introduced in Dec, 2024: https://changelog.shopify.com/posts/direct-customers-back-to-the-online-store-after-login
>> Direct your customers back to online store after a successful login with a new storefront_login_url route in the routes object. With this route, customers will now be taken back to the page where the login originated. You can also direct customers back to another page on the online store using the /customer_authentication/login path with a return_to parameter.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025