SOLUTION: Members Store - Redirect back to current page after Login

Shopify Expert
12 0 4

Hi all! The tutorial for members only store is here:

It doesn't tell you how to redirect to previous page, only to a specific page. I just figured this out and it works for my site, and wanted to share with the community: replace checkout_url={{ shop.url }} with  {{ canonical_url }}

<meta content="0; url=/account/login?checkout_url={{ canonical_url }}" http-equiv="refresh" />


Working example:
I wanted the automatically generated tags page to be private on my store, so I protected the tag pages to private unless you have an account.
click on the pink tag under the photo "Chuubie" which will take you to the tags page, which you will be redirected to after you log in!

Let me know if you have any trouble with this!

Stores I built: (highly art-directed Nail Lacquer boutique) / (NYC SoHo Fashion Brand) / (high-volume product jewelry website) / (my personal testing ground, using Shopify CMS as a stock photography sales platform)