/account/login) instead. After signing in, they return to the page they were on.
Setup
In the theme code editor, openlayout/theme.liquid and add the following script just before </body>.
How to check
Sign out, open a product page, and tap the favorite button. If the address bar shows/account/login?return_url=..., the setup is complete.
To return customers to the original page after they sign in, your login page must use Shopify’s standard login form (
{% form 'customer_login' %}). If you have customized the login page, check that its source contains an input with name="return_url".