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
This commit is contained in:
Rafael dos Santos Silva 2023-02-03 16:48:05 -03:00 committed by GitHub
parent 232c9d84b7
commit f1d794f32d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: [],