From f1d794f32d42de1c5729c80965b74186aba028ab Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Fri, 3 Feb 2023 16:48:05 -0300 Subject: [PATCH] FIX: Use `/` for start_url in webmanifest on non-subfolder installs (#20167) See https://meta.discourse.org/t/i-want-to-make-changes-to-manifest-json-file/253050?u=falco --- app/controllers/metadata_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/metadata_controller.rb b/app/controllers/metadata_controller.rb index 4d75df06f07..0e6eda9c366 100644 --- a/app/controllers/metadata_controller.rb +++ b/app/controllers/metadata_controller.rb @@ -47,7 +47,7 @@ class MetadataController < ApplicationController SiteSetting.title.truncate(12, separator: " ", omission: ""), description: SiteSetting.site_description, display: display, - start_url: Discourse.base_path.present? ? "#{Discourse.base_path}/" : ".", + start_url: Discourse.base_path.present? ? "#{Discourse.base_path}/" : "/", background_color: "##{ColorScheme.hex_for_name("secondary", scheme_id)}", theme_color: "##{ColorScheme.hex_for_name("header_background", scheme_id)}", icons: [],