From 84459b06e26d1f66b03830b594a76c42f2339303 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 24 Jul 2025 17:27:02 +0000 Subject: [PATCH 1/4] feat: dynamically set PWA start_url This commit fixes an issue where the PWA would always start at the root of the application, regardless of the page you were on when you installed it. This is fixed by: - Consolidating the two manifest files into a single file. - Adding a new route to the server that dynamically generates the `start_url` in the manifest based on the current route. - Adding an e2e test to verify the changes. --- apps/client/index.html | 3 +- apps/client/public/manifest.json | 19 ----------- apps/client/public/manifest.webmanifest | 15 +++++++++ apps/client/public/site.webmanifest | 10 ------ apps/server/src/app.ts | 19 +++++++++++ e2e/tests/features/214-pwa-install.spec.ts | 37 ++++++++++++++++++++++ package.json | 5 ++- pnpm-lock.yaml | 4 +++ 8 files changed, 80 insertions(+), 32 deletions(-) delete mode 100644 apps/client/public/manifest.json create mode 100644 apps/client/public/manifest.webmanifest delete mode 100644 apps/client/public/site.webmanifest create mode 100644 e2e/tests/features/214-pwa-install.spec.ts diff --git a/apps/client/index.html b/apps/client/index.html index d93477afc7..1766a39df6 100644 --- a/apps/client/index.html +++ b/apps/client/index.html @@ -9,8 +9,7 @@ - - + ontime