Commit 4fdd43a
Fix auth dialog URL construction for subpath hosting
window.location.origin alone drops the /usable-excel/ subpath on GitHub
Pages, causing the dialog to open at a 404 URL and the Keycloak redirect
to point to the wrong origin.
- use-auth.ts: derive basePath from window.location.pathname so the
dialog URL includes the correct subpath in any hosting environment
- auth-dialog.html: use window.location.pathname for REDIRECT_URI instead
of hardcoded /auth-dialog.html, same reason
Both fixes are dev/prod agnostic — work on localhost:3333 and GitHub Pages.
Co-Authored-By: Claude (claude-sonnet-4-6) <noreply@anthropic.com>1 parent b332dd0 commit 4fdd43a
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
0 commit comments