%header#branding.masthead.hidden-print(role="banner")
  %section
    %h1
      = link_to http_prefix do
        - if data.site.logo
          = image_tag data.site.logo, id: "rhlogo", class: "logo", alt: data.site.name
        - else
          = data.site.name

    = partial :nav, locals: { source: "navigation", nav_class: "" }

- if current_page.url == "/"
  = partial "subheader-front"
- else
  = partial "subheader"

%header#branding.masthead.hidden-print(role="banner")
  %section
    %h1
      = link_to http_prefix do
        - if data.site.logo
          = image_tag data.site.logo, id: "rhlogo", class: "logo", alt: data.site.name
        - else
          = data.site.name

    = partial :nav, locals: { source: "navigation", nav_class: "" }

- if current_page.url == http_prefix
  = partial "subheader-front"
- else
  = partial "subheader"

Fix test in header layout to take http_prefix into account.
Fix test in header layout to take http_prefix into account.
