mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 10:41:45 +08:00
FIX: start_url was wrong in non-subfolder
This commit is contained in:
parent
525931b77e
commit
51cb38783e
|
@ -24,7 +24,7 @@ class MetadataController < ApplicationController
|
||||||
short_name: SiteSetting.title,
|
short_name: SiteSetting.title,
|
||||||
display: 'standalone',
|
display: 'standalone',
|
||||||
orientation: 'any',
|
orientation: 'any',
|
||||||
start_url: "#{Discourse.base_uri}/",
|
start_url: Discourse.base_uri.present? ? "#{Discourse.base_uri}/" : '.',
|
||||||
background_color: "##{ColorScheme.hex_for_name('secondary')}",
|
background_color: "##{ColorScheme.hex_for_name('secondary')}",
|
||||||
theme_color: "##{ColorScheme.hex_for_name('header_background')}",
|
theme_color: "##{ColorScheme.hex_for_name('header_background')}",
|
||||||
icons: [
|
icons: [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user