From 51cb38783ef0224942d85d6efa28ab9f3f1b4296 Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Fri, 15 Jun 2018 14:29:33 -0300 Subject: [PATCH] FIX: start_url was wrong in non-subfolder --- 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 7dcea154b46..bd77bd191d2 100644 --- a/app/controllers/metadata_controller.rb +++ b/app/controllers/metadata_controller.rb @@ -24,7 +24,7 @@ class MetadataController < ApplicationController short_name: SiteSetting.title, display: 'standalone', orientation: 'any', - start_url: "#{Discourse.base_uri}/", + start_url: Discourse.base_uri.present? ? "#{Discourse.base_uri}/" : '.', background_color: "##{ColorScheme.hex_for_name('secondary')}", theme_color: "##{ColorScheme.hex_for_name('header_background')}", icons: [