Shopify redirect after customers log in

Hi guys,

I have no knowledge in coding at all, but I am trying to redirect the customers to somewhere else after they log in, for example homepage, I’ve tried the methods on the forum but I don’t think any of them are working, is there anyone that can help me on this? Thank you so much

Find the following code block:

{%- assign return_to = 'account' | customer_return_to -%}

Replace ‘account’ with the URL or handle of the page you want to redirect customers to. For example, if you want to redirect customers to the homepage, you can use ‘/’ or ‘home’ as the value. The updated code would look like this:

{%- assign return_to = '/' | customer_return_to -%}

Hi! Thank you so much for replying, however I can’t find this code {%- assign return_to = ‘account’ | customer_return_to -%} in customers/login.liquid, is it in other files?

Did you still need help with this, or you got it covered?