<!DOCTYPE html>
<html>
  <head>
    <meta charset="<%= charset %>" />
    <% stylesheets_full_list.each do |stylesheet| %>
      <link rel="stylesheet" href="<%= url_for(stylesheet) %>" type="text/css" media="screen" charset="utf-8" />
    <% end %>

    <% javascripts_full_list.each do |javascript| %>
      <script type="text/javascript" charset="utf-8" src="<%= url_for(javascript) %>"></script>
    <% end %>

    <title><%= @list_title %></title>
    <base id="base_target" target="_parent" />
  </head>
  <body>
    <div id="content">
      <div class="fixed_header">
        <h1 id="full_list_header"><%= @list_title %></h1>
        <div id="full_list_nav">
          <% menu_lists.each do |list| %>
            <span><a target="_self" href="<%= url_for_list list[:type] %>">
              <%= list[:title] %>
            </a></span>
          <% end %>
        </div>

        <!-- don't auto-focus on search -->
        <input type="text" autofocus="autofocus"
          style="position:absolute;top:-10000px" />

        <div id="search">Search: <input type="text" /></div>
      </div>

      <ul id="full_list" class="<%= @list_class || @list_type %>">
        <%= erb "full_list_#{@list_type}" %>
      </ul>
    </div>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <meta charset="<%= charset %>" />
    <% stylesheets_full_list.each do |stylesheet| %>
      <link rel="stylesheet" href="<%= url_for(stylesheet) %>" type="text/css" media="screen" charset="utf-8" />
    <% end %>

    <% javascripts_full_list.each do |javascript| %>
      <script type="text/javascript" charset="utf-8" src="<%= url_for(javascript) %>"></script>
    <% end %>

    <title><%= @list_title %></title>
    <base id="base_target" target="_parent" />
  </head>
  <body>
    <div id="content">
      <div class="fixed_header">
        <h1 id="full_list_header"><%= @list_title %></h1>
        <div id="full_list_nav">
          <% menu_lists.each do |list| %>
            <span><a target="_self" href="<%= url_for_list list[:type] %>">
              <%= list[:title] %>
            </a></span>
          <% end %>
        </div>

        <div id="search">Search: <input type="text" /></div>
      </div>

      <ul id="full_list" class="<%= @list_class || @list_type %>">
        <%= erb "full_list_#{@list_type}" %>
      </ul>
    </div>
  </body>
</html>

Fix focus issue when anchor is present in URL
Fix focus issue when anchor is present in URL
