When I click on login-url in my Liquid theme, I dont get redirected to my custom login page

Topic summary

Issue: Clicking the login link (or visiting /account/login) in a custom Liquid theme redirects to Shopify’s hosted login page instead of the theme’s custom login template, while the register link correctly reaches the custom register page.

Cause: Store is configured to use “New customer accounts,” which routes authentication through Shopify’s hosted UI and bypasses theme-based account pages.

Solution: In Admin > Settings > Customer accounts > Edit (Online store & checkout), select “Classic customer accounts.” Classic accounts render theme templates (e.g., the {% form ‘customer_login’ %} form) for /account/login.

Outcome: After switching to classic customer accounts, the login URL resolves to the custom login page and no longer redirects to the hosted form.

Status: Resolved. No further action items noted.

Notes: “Classic customer accounts” use theme-rendered account pages; “New customer accounts” are hosted by Shopify and override theme routes.

Summarized with AI on January 4. AI used: gpt-5.

SOLVED: In the shopify admin, go to Settings > Customer accounts. Then click edit on the accounts in online store and checkout and then select “classic customer accounts”.

So when I click on the register link in my theme(that I am building from scratch), I get redirected to the register page. But when I click on the login link I get sent to Shopify’s login form show in the image above, NOT the login page I made. Also even if I physically type https://my-store-url/account/login, I get redirected to the image above again. I want to be able to get redirected to my custom login page.

This is what my login file looks like:

{% form 'customer_login' %}

{{ form.errors | default_errors }}

Email
Password
{% endform %} Create an account