Blog / Redirecting to your Black Friday Sale page in Shopify
Redirecting to your Black Friday Sale page in Shopify

Black Friday is fast approaching – but if you’ve ever tested your store’s search function during sale season, you’ve probably noticed a problem. Shopify’s native search doesn’t always help customers find your Black Friday or Cyber Monday sale pages. Instead, shoppers often end up on regular product results rather than the dedicated sale collection you’ve worked hard to promote.
This simple Shopify section fixes that. It automatically redirects certain search terms to your Black Friday (or any other promotional) collection page using a lightweight JavaScript redirect.
Step 1: Create a new section
Add a new section in your theme and paste the following Liquid code:
{% assign ss = section.settings %}
{% if ss.enable_redirect == true %}
{% assign input_string = ss.search_terms %}
{% assign items = input_string | split: ',' %}
{% assign result = '' %}
{% for item in items %}
{% assign clean_item = item | strip %}
{% assign quoted_item = '"' | append: clean_item | append: '"' %}
{% assign result = result | append: quoted_item %}
{% unless forloop.last %}
{% assign result = result | append: ', ' %}
{% endunless %}
{% endfor %}
{% endif %}
{% schema %}
{
"name": "Blink Search Redirect",
"settings": [
{"type" : "header",
"content": "Search Redirects"
},
{
"type": "checkbox",
"id": "enable_redirect",
"label": "Enable Redirect",
"default": false
},
{
"type" : "text",
"id" : "search_terms",
"label": "Search Terms",
"default": "black friday,blackf,cyber m, cyberm, cyber monday"
},
{
"type" : "text",
"id" : "redirect_to",
"label": "Redirect To",
"default": "https://www.yourwebsite.com/collections/black-friday"
}
],
"presets": [
{
"name": "Blink Search Redirect"
}
]
}
{% endschema %}
Step 2: Add the section to your search template
In your theme customiser, include your new section at the top of your SEARCH template.
Step 3: Configure your redirect settings
In the theme customiser, toggle Enable Redirect on, and enter the keywords you’d like to redirect – for example: black friday, blackf, cyber m, cyberm, cyber monday
.
Then, specify the URL of your sale collection under Redirect To.
That’s it
Now when a customer searches one of those terms, they’ll be automatically redirected to your Black Friday or Cyber Monday sale page. When the sale’s over, simply toggle the setting off – ready for next year.