Index: app/views/hooks/opensearch/_view_layouts_base_html_head.rhtml =================================================================== --- app/views/hooks/opensearch/_view_layouts_base_html_head.rhtml (Revision 4) +++ app/views/hooks/opensearch/_view_layouts_base_html_head.rhtml (Arbeitskopie) @@ -1,6 +1,6 @@ - -<% if @project -%> - +<% if User.current.logged? -%> + <%= tag :link, :rel => 'search', :type => 'application/opensearchdescription+xml', :href => url_for(:controller => 'opensearch', :action => 'index'), :title => h(Setting.app_title) %> + <% if @project -%> + <%= tag :link, :rel => 'search', :type => 'application/opensearchdescription+xml', :href => url_for(:controller => 'opensearch', :action => 'index', :project_id => @project), :title => "#{h Setting.app_title} - #{h @project.name}" %> + <%- end %> <%- end %> \ No newline at end of file