How can I redirect customers to a Collection page after login?

Topic summary

A user wants to redirect customers to a Collection page instead of the default Order History page (/account) after login.\n\nInitial Solution Proposed:\n- Modify main-login.liquid file\n- Add a hidden input field with `name=\

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

When a customer logs in, it takes them to the Order History page, /account. Is there a way to change the destination when they click the Sign In button? I want to send them to a Collection page instead. I think the code would be in customers/login.liquid.

Hi @tmpulido ,

Go to online-store - > edit theme

search for main-login.liquid and find code

{%- form 'customer_login', novalidate: 'novalidate' -%}

now put the below line just after the above code


value=“/” refer to homepage here you can provide any URL.

Hope it helps…

Thanks for the response. I don’t have a main-login.liquid file, but I do have customers/login.liquid.

I found the line {% form ‘customer_login’ %}, but no , novalidate: ‘novalidate’ -%}.

I added the following line above that line…

… but it still takes me to the Order Summary and not the wholesale collection page.

Thanks

@tmpulido

Would you mind sharing the store URL and password?