From c7c33fb0f3c7586fa4d91ab89a419beda62e343d Mon Sep 17 00:00:00 2001 From: crowetic Date: Tue, 24 Feb 2026 13:15:36 -0800 Subject: [PATCH] added patch for resolving 'overall PWA' installations so that they will follow theme. Signed-off-by: crowetic --- apps/theming/lib/ThemingDefaults.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index c5b211a5b194a..ecb6348289cb0 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -386,6 +386,15 @@ public function replaceImagePath($app, $image) { $route = $this->urlGenerator->linkToRoute('theming.Icon.getTouchIcon', ['app' => $app]); } if ($image === 'manifest.json') { + // Force instance branding for the installable shell manifest. + // `core` and `settings` ship a static manifest.json, but for PWAs we want + // the dynamic theming manifest so the app name/icon follow instance theming. + if ($app === 'core' || $app === 'settings') { + $route = $this->urlGenerator->linkToRoute('theming.Theming.getManifest', ['app' => 'core']); + } + if ($route !== false) { + return $route . '?v=' . $this->util->getCacheBuster(); + } try { $appPath = $this->appManager->getAppPath($app); if (file_exists($appPath . '/img/manifest.json')) {