Redirect after login using the recently added B2B/"New customer accounts" feature

Redirect after login using the recently added B2B/"New customer accounts" feature

jdmwood
Shopify Partner
2 0 6

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` )

 

Screenshot 2022-06-29 at 13.10.12.png

 

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?

Replies 7 (7)

abhishek_jain2
Shopify Partner
1 0 2

I'm also stucked in the same issue, anyone can help.

Adam_e
Shopify Partner
2 0 3

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.

Jill_Kanto
Tourist
12 0 1

Have you found a solution to this? I'm trying to accomplish your second option - an automatic redirect.

ArchitechproOU
Shopify Partner
109 2 20

+1 – option to provide `redirect_url` would be super helpful

Rachelina
Shopify Partner
3 0 1

+1 option to provide `redirect_url` would be super helpful 🙂 

magnolia2025
Visitor
2 0 1

Hello we just set up shopify and are stuck with this same issue.. did you find a way to fix it

ArchitechproOU
Shopify Partner
109 2 20

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.