Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hydrogen Redirect Theme

[Download](https://github.com/Shopify/hydrogen-redirect-theme/archive/refs/heads/master.zip)
[Download](https://github.com/Shopify/hydrogen-redirect-theme/archive/refs/heads/main.zip)

When launching a Hydrogen storefront, you’ll likely also want to redirect
any traffic that happens to hit your Liquid store too. This theme
Expand All @@ -9,7 +9,7 @@ detection checkpoint, and discount links.

## Setup

1. [Download the theme](https://github.com/Shopify/hydrogen-redirect-theme/archive/refs/heads/master.zip)
1. [Download the theme](https://github.com/Shopify/hydrogen-redirect-theme/archive/refs/heads/main.zip)
2. Navigate to **Online Store -> Themes** in your Shopify admin
3. **Upload** the theme to your Theme Library
4. **Customize** the Redirect theme
Expand Down
4 changes: 2 additions & 2 deletions layout/theme.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

{% comment %}
Handle discount code logic (e.g. xxx.myshopify.com/discount/freeshipping?redirect=/products)
- Add discount code to as param to the edirect URL if the `discount_code` cookie exists
- Add discount code to as param to the redirect URL if the `discount_code` cookie exists
- Cookie is deleted after to prevent it from being automatically added to other routes
{% endcomment %}
var discountCode = getCookie('discount_code');
Expand Down Expand Up @@ -146,7 +146,7 @@
<h1>Redirecting...</h1>
<p>
<a id="redirect-link" href="https://{{ settings.storefront_hostname }}/">Click here</a>
if you are not automically redirected.
if you are not automatically redirected.
</p>
<script>
if (!window.Shopify.designMode) {
Expand Down