'
data-base-path='<%= custom_path_if_needed help_root_path(locale: '{locale}'), @knowledge_base %>'
data-primary-locale="<%= (filter_primary_kb_locale || all_locales.first)&.locale %>">
<%= kb_public_page_title(@knowledge_base, @object, @page_title_error) %>
<%= render partial: 'knowledge_base/public/feeds_header' if @knowledge_base.show_feed_icon %>
<%= stylesheet_link_tag "knowledge_base.css", :media => 'all' %>
<%= render 'knowledge_base/public/inline_stylesheet', knowledge_base: @knowledge_base, locale: system_locale_via_uri %>
<%= canonical_link_tag @knowledge_base, @category, @object %>
<%= render_top_bar_if_needed @object, @knowledge_base %>
<%= render_breadcrumb_if_needed(@knowledge_base, @object, @alternative) %>
<%= yield %>
<%= javascript_tag nonce: true do -%>
if(window.fetch === undefined || window.Promise === undefined || Element.prototype.prepend === undefined){
var polyfillScriptTag = document.createElement('script');
polyfillScriptTag.setAttribute('src', '<%= path_to_javascript('knowledge_base_public_polyfills') %>');
polyfillScriptTag.setAttribute('nonce', '<%= content_security_policy_nonce %>');
document.body.appendChild(polyfillScriptTag);
}
<% end -%>
<%= javascript_include_tag 'knowledge_base_public', nonce: true %>