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)
This commit is contained in:
Mike Dalessio
2025-11-19 08:27:41 -05:00
parent e0a67be3fd
commit 5a85466732
2 changed files with 4 additions and 7 deletions
+1 -3
View File
@@ -23,9 +23,7 @@
<%= yield :head %>
<% if Current.account %>
<link rel="manifest" href="<%= pwa_manifest_path(format: :json) %>">
<% end %>
<link rel="manifest" href="<%= pwa_manifest_path(format: :json) %>">
<link rel="icon" href="/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
</head>
+3 -4
View File
@@ -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": [