mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-15 02:54:06 +02:00
Two issues seen on the hosted /bpp login screen: 1. GET /api/v1/storage/folders fired (and 401'd) on the login page. The global FolderProvider pulls from the server whenever appConfig.storageEnabled is true, with no auth gate, so it hits the authenticated storage API before the user has signed in. Skip the pull on auth routes (/login, /signup, /auth/*, /invite, /reset-password), mirroring the existing LicenseContext / AppConfigContext guards. Tests wrap FolderProvider in MemoryRouter (now uses useLocation). 2. manifest.json and modern-logo/favicon.ico 404'd from the domain root instead of /bpp/. vite base for RUN_SUBPATH deploys was "/bpp" with no trailing slash, so <base href="/bpp"> made the browser resolve relative links against the parent (root). Use "/bpp/"; getBasePath() strips the trailing slash, so BASE_PATH, routing and asset URLs are unchanged. Co-Authored-By: Claude Opus 4.8 <[email protected]>