diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 5a4ec12e51f..4b6808962cc 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -159,13 +159,13 @@ module ApplicationHelper def render_sitelinks_search_tag json = { - '@context': 'http://schema.org', - '@type': 'WebSite', + '@context' => 'http://schema.org', + '@type' => 'WebSite', url: Discourse.base_url, potentialAction: { - '@type': 'SearchAction', + '@type' => 'SearchAction', target: "#{Discourse.base_url}/search?q={search_term_string}", - 'query-input': 'required name=search_term_string', + 'query-input' => 'required name=search_term_string', } } content_tag(:script, MultiJson.dump(json).html_safe, type: 'application/ld+json'.freeze)