How to redirect new customer accounts to main store instead of orders page?

Topic summary

Users want to redirect customers back to the main store or previous page after login when using Shopify’s ‘New Customer Accounts’ feature, instead of the default redirect to ‘/account/orders’.

Initial Problem:

  • New Customer Accounts automatically redirects to the account overview page after login
  • No native support for custom redirections or general login links while browsing
  • Shopify support confirmed this limitation wasn’t clearly documented

Workarounds Attempted:

  • Some users reverted to old-style customer accounts
  • Apps for New Customer Accounts were announced for December 2024

Solution Found:
Two redirect methods now work:

  • routes.storefront_login_url
  • /customer_authentication/login?return_to=

Multiple users confirmed these solutions are effective. Full implementation details available in Shopify’s theme login documentation.

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

I’d prefer to use the ‘New Customer Accounts’, as it dispenses with a password..

I want to redirect the customer back to the main store, or the previous page, but definitely not to ‘/account/orders’ page.

Is there any way to do this?

I apologise for reposting this question, as it’s clearly been asked before, but not answered as far as I can tell.

Some useful pages:-

https://help.shopify.com/en/manual/customers/customer-accounts

https://community.shopify.com/c/shopify-design/redirect-login-user-to-previous-page-new-customer-accounts/m-p/2402376#M632278

3 Likes

did you find a solution? i too have this issue.

No, we reverted to old style accounts.

Here is from Shopify support:

Unfortunately, with the new customer accounts feature, Shopify does not currently support custom redirection to stay on the same page after login. The new customer accounts feature always redirects customers to the account overview page after login.

Basically they forget to mention that new customer accounts DOES NOT SUPPORT having a general log in link on your site that allows customers to log in while browsing.


Just checking if anyone has found a solution for this yet when using Shopify’s new customer accounts feature

1 Like

I just received an email that indicates Apps are coming to New Customer Accounts in December.

Not_guest_user_0-1734091328180.png

Try this it works

1 Like

This worked :slightly_smiling_face: . Thank you!

Yes! With new customer accounts you can redirect users after login back to the storefront using either

routes.storefront_login_url

or

``

/customer_authentication/login?return_to=

Find more information on their usage here: https://shopify.dev/docs/storefronts/themes/login