</div>
</div>
<div id="footer">
- Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> © 2006-2022 Jean-Philippe Lang
+ Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url, :target => '_blank', :rel => 'noopener' %> © 2006-2022 Jean-Philippe Lang
</div>
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
:caption => :label_project_plural
menu.push :administration, {:controller => 'admin', :action => 'index'},
:if => Proc.new {User.current.admin?}, :last => true
- menu.push :help, Info.help_url, :last => true
+ menu.push :help, Info.help_url, :html => {:target => '_blank', :rel => 'noopener'}, :last => true
end
MenuManager.map :account_menu do |menu|
get '/projects/ecookbook'
assert_select 'div#quick-search form[action="/projects/ecookbook/search"]'
end
+
+ def test_help_and_powered_by_redmine_link_should_open_separate_tab
+ get '/'
+ assert_select '#top-menu a.help[target="_blank"][rel="noopener"]'
+ # "Powered by Redmine" link
+ assert_select '#footer a[target="_blank"][rel="noopener"]'
+ end
end