Skip to content

A platform for community discussion. Free, open, simple.

FEATURE: Add site description for the webmanifest (#12217)

Rafael dos Santos Silva6569449ea45f
diff --git a/app/controllers/metadata_controller.rb b/app/controllers/metadata_controller.rb
index 594fcab99af..0fc3fa6febd 100644
--- a/app/controllers/metadata_controller.rb
+++ b/app/controllers/metadata_controller.rb
@@ -44,6 +44,7 @@ class MetadataController < ApplicationController
manifest = {
name: SiteSetting.title,
short_name: SiteSetting.short_title.presence || SiteSetting.title.truncate(12, separator: ' ', omission: ''),
+ description: SiteSetting.site_description,
display: display,
start_url: Discourse.base_path.present? ? "#{Discourse.base_path}/" : '.',
background_color: "##{ColorScheme.hex_for_name('secondary', scheme_id)}",