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.
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!