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

Steven_Chu
Shopify Expert
12 0 4

Hi all! The tutorial for members only store is here:
https://help.shopify.com/themes/customization/access/create-members-only-store#change-the-page-that-...

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.

https://chuubie.com/products/170512054
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: Flora1761.com (highly art-directed Nail Lacquer boutique) / Marissa-Webb.com (NYC SoHo Fashion Brand) / ViraniJewelers.com (high-volume product jewelry website) / Chuubie.com (my personal testing ground, using Shopify CMS as a stock photography sales platform)