Skip to content

Shopify Dude Answer

Why Won’t Shopify Redirect /account/login to a Custom Page?

Shopify controls customer-account routes. New customer accounts redirect legacy URLs automatically, and URL Redirects are not the right tool for overriding login.

Quick answer: Customer-account login routes are Shopify-controlled system routes. With new customer accounts, Shopify automatically redirects legacy account URLs such as /account/login. Build custom account experiences on another route and link to supported login URLs rather than trying to override the reserved route.

The real symptom

  • A URL Redirect for /account/login does not work.
  • The login page opens on a Shopify-controlled domain.
  • A custom account page is ignored after enabling new customer accounts.
  • Legacy hidden redirect tricks no longer work.

Likely causes

  • The store uses new customer accounts, which take over login and account pages.
  • The route is reserved by Shopify.
  • Native URL Redirects cannot override valid system routes.
  • Theme code still links to legacy account paths.
  • The desired experience should live on a page such as /pages/account or /dashboard.

Fix path

  1. Go to Settings → Customer accounts.
  2. Identify whether the store uses current customer accounts or legacy customer accounts.
  3. For current accounts, update theme links to Shopify’s supported account/login route behavior.
  4. Place custom dashboards on non-reserved URLs.
  5. Use supported return-to or redirect settings when available.
  6. Remove hard-coded legacy login forms after upgrading.

Simple checks

  • Search the theme for /account/login and custom login modals.
  • Test login from header, checkout, account page, and B2B entry points.
  • Do not use URL Redirects to override a route that still returns a valid Shopify account page.

Do not do this

Do not create JavaScript redirects on customer-account pages as the main solution. They are brittle and often run too late or not at all on Shopify-hosted account surfaces.

Sources