learnshopify.dev/Workspace
code reading

The head of layout/theme.liquid, contractor additions included. Decide what stays.

<!doctype html>
<html lang="{{ request.locale.iso_code }}">
  <head>
    <meta charset="utf-8">
    <title>{{ page_title }}</title>
    <link rel="canonical" href="{{ canonical_url }}">

    {% comment %} International SEO block (added by contractor, 2025) {% endcomment %}
    {% for language in localization.available_languages %}
      <link
        rel="alternate"
        hreflang="{{ language.iso_code }}"
        href="{{ shop.url }}/{{ language.iso_code }}{{ request.path }}"
      >
    {% endfor %}
    <link rel="alternate" hreflang="x-default" href="{{ shop.url }}{{ request.path }}">

    {{ content_for_header }}
  </head>
1. What job does the canonical line do that the hreflang links don't?
2. With Markets active, where do the correct hreflang tags come from?
3. Ship this head unchanged. What does Google see?
4. What does `hreflang="x-default"` declare?
5. When is hand-rolling hreflang the right call?
0 / 1 task solved