Finding 01 · SYP-I18N-004 · v1.3.0
Hard-coded storefront route
Internationalization · sections/header.liquid:48
Source
sections/header.liquid:48
48
<a href="/collections/all">Shop all</a>Evidence · observed
The href contains the literal storefront path /collections/all.
Evidence · context
The value is inside an anchor attribute rendered by the global header section.
Explain
A literal storefront path does not use Shopify’s locale-aware route object. On localized storefronts, the link can return a visitor to the default locale.
Validation
Accepted · High confidence
Static Liquid inspection matched a literal route in a navigational href and confirmed that no locale-aware route object is used.
Known limitations
- The Runtime did not execute storefront navigation in a browser.
- The result does not assert that the store has multiple published locales.
Limited Fix Preview
Preview availableBefore
href="/collections/all"After
href="{{ routes.all_products_collection_url }}"- Rationale
- Use Shopify’s locale-aware route object.
- Risk
- Low · bounded attribute replacement
Preview only. No code was applied or deployed.