Redirect home page to collection page? (PRESTIGE THEME v1.2.2)

Topic summary

A user sought to redirect their Shopify store’s homepage to the /collections/all page on the Prestige theme v1.2.2. Previous solutions and JavaScript code attempted with Shopify support failed to work.

Solutions Proposed:

  • One contributor suggested adding Liquid code before the closing </header> tag that checks if the request path is / and redirects via JavaScript
  • Another recommended inserting code after </head> in layout/theme.liquid using Liquid’s request.page_type == 'index' condition

Resolution:
The second solution (adding code after </head> in theme.liquid) successfully resolved the issue. The discussion is now closed with a working solution confirmed by the original poster.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

I want to make a collection/all page to replace the default homepage of my shopify website. So when typing in www.xyz.com it redirections to www.xyz.com/collection/all.

I’ve tried this suggestion in another thread but since my template version is 1.2.2, this solution doesn’t seem to work.

https://community.shopify.com/c/shopify-design/how-do-i-redirect-a-collection-page-and-make-it-the-default/m-p/2049424

I have tried this code below and added above the header via shopify support team. They suggested and tried the following below with no luck. Does anyone else have another idea or solution for this? Thanks!

Hey @larsa ,

Try using this code and make sure that your add this code before closing.

{% if request.path == ‘/’ %}

{% endif %}

I’ve tried this code in my store. Let me know if this works.

Mark this question as solution if it works.

Thank you,

Hi @larsa

Add the following code afterin the ‘layout/theme. liquid’ file

{%- if request.page_type == 'index' -%}
    
  {% endif %}
1 Like

This works! thank you Kyle!!!