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:
parent
232c9d84b7
commit
f1d794f32d
|
@ -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: [],
|
||||
|
|
Loading…
Reference in New Issue