FIX: start_url was wrong in non-subfolder

This commit is contained in:
Rafael dos Santos Silva 2018-06-15 14:29:33 -03:00
parent 525931b77e
commit 51cb38783e

View File

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