Changing the landing page of a b2b customer login

Topic summary

A merchant wants to modify their B2B customer login flow. Currently, customers land on an account page after login and must click a “Shop” button to access the store.

Desired change:

  • Have B2B customers land directly on the shop page after login
  • Provide an option to view account details from there instead

Solution provided:
Shopify recently released functionality enabling custom post-login redirects using the storefront_login_url route. This allows:

  • Redirecting customers back to their previous page before login
  • Setting a custom landing page (such as the shop page)

Implementation details are available in Shopify’s changelog documentation.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

So this the page that my b2b customers land on after login, they have the option to select the shop button,(in red) to take them to our shop, could they land on the shop page and then have the option to look at there

Hey there,

With Shopify’s recent release, you can now achieve this functionality. Customers can be redirected back to the previous page from where the login was initiated or to any custom page, such as your shop page, by using the storefront_login_url route in the routes object.

For more details, you can check out: https://changelog.shopify.com/posts/direct-customers-back-to-the-online-store-after-login