From 5a85466732644a760ea292877640382d6e2ca87e Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 19 Nov 2025 08:27:41 -0500 Subject: [PATCH] Remove the account slug from the PWA manifest - linked in the `head` on all requests (previously just tenanted requests) - `start_url` and `scope` are "/" (previously account slug) --- app/views/layouts/shared/_head.html.erb | 4 +--- app/views/pwa/manifest.json.erb | 7 +++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/views/layouts/shared/_head.html.erb b/app/views/layouts/shared/_head.html.erb index b83e4ccd7..550b61eaa 100644 --- a/app/views/layouts/shared/_head.html.erb +++ b/app/views/layouts/shared/_head.html.erb @@ -23,9 +23,7 @@ <%= yield :head %> - <% if Current.account %> - - <% end %> + diff --git a/app/views/pwa/manifest.json.erb b/app/views/pwa/manifest.json.erb index e67cbb8e6..fc7777836 100644 --- a/app/views/pwa/manifest.json.erb +++ b/app/views/pwa/manifest.json.erb @@ -1,6 +1,5 @@ -<% account = Account.find_by_external_account_id!(request.env["fizzy.external_account_id"]) rescue nil %> { - "name": <%= [ "Fizzy", account&.name, Rails.env.production? ? nil : Rails.env ].compact.join(" - ").to_json.html_safe %>, + "name": <%= [ "Fizzy", Rails.env.production? ? nil : Rails.env ].compact.join(" - ").to_json.html_safe %>, "icons": [ { "src": "/app-icon-192.png", @@ -19,9 +18,9 @@ "purpose": "maskable" } ], - "start_url": "<%= root_path %>", + "start_url": "/", "display": "standalone", - "scope": "<%= root_path %>", + "scope": "/", "description": "Card-up the biggest issues in your projects", "categories": ["bugs", "business", "productivity"], "shortcuts": [