Skip to content

Instantly share code, notes, and snippets.

@boldsupport
Last active October 11, 2017 16:59
Show Gist options
  • Save boldsupport/67c60bcc5ded8c515380 to your computer and use it in GitHub Desktop.
Save boldsupport/67c60bcc5ded8c515380 to your computer and use it in GitHub Desktop.
{%comment %}This snippet is generated and updated by Bold Memberships. any changes will be overridden when the Store Owner saves a Plan in the app.{%endcomment%}
{% assign bold_membership_partial_redirect = false %}
{% assign bold_membership_full_redirect = false %}
{% assign mem_current_template = template %}
{%if bold_membership_partial_redirect == true %}
<script>
top.location = (window.location.href + "?view={{bold_membership_template}}");
</script>
{%endif%}
{% if bold_membership_full_redirect == true %}
<script>
bold_url = window.location.href
top.location = bold_url.split("?view=")[0];
</script>
{%endif%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment