I'm trying to create a specific login modal on home page however when I enter wrong login details it gets redirected to default login page instead of staying on same page where modal is located.. How can I prevent this to happend? There is a way to redirect customers when they succesfull login with this line of code:
<input type="hidden" name="checkout_url" value="/collections/all">
Does anyone know the link or solution to stay on same page when entering wrong details? Test my page to see whats happening:
Click on the Account icon on the right top of my screen and login with some random details.
Hope someone can help
Thanks in advance
Technical answer, can't really be done with an html input field.
Not without some sort of backend code to tell whether user has logged in correctly or incorrectly.
That backend code is where you would then do the redirect.
I'm not entire sure how it is set up so, I'd probably need to take a look in order to help.
Let me know if I can help further.
I came up with a workaround of my own: https://community.shopify.com/c/Technical-Q-A/Login-form-redirect-if-incorrect-password/m-p/977607/h...