Commit 15b996d
authored
Issue LIF-Initiative#880: Add SPA fallback nginx config to Advisor frontend (LIF-Initiative#881)
##### Description of Change
Adds an `nginx.conf` with `try_files` SPA fallback routing to the
Advisor frontend, matching the existing MDR frontend pattern.
**What problem does this solve?**
When a user enters a wrong password, the app navigates to `/login`.
Without SPA fallback routing, nginx returns a 404 page instead of
serving the React app. The user sees a blank "404 Not Found" page and
must manually navigate back.
**What is the solution?**
- Add `nginx.conf` with `try_files $uri /index.html;` (same as
`frontends/mdr-frontend/nginx.conf`)
- Uncomment and update the `COPY` line in the Dockerfile to install the
config
**How should reviewers test this?**
- Build and run the Advisor Docker image
- Enter wrong credentials on the login page
- Verify the error message appears and the login form stays visible
(instead of a 404)
##### Related Issues
Closes LIF-Initiative#880
##### Type of Change
- [x] Bug fix (non-breaking change which fixes an issue)
##### Project Area(s) Affected
- [x] frontends/
---
##### Checklist
- [x] commit message follows commit guidelines (see
commitlint.config.mjs)
##### Testing
- [ ] Manual testing performed
- [ ] Automated tests added/updated
- [ ] Integration testing completed
🤖 Generated with [Claude Code](https://claude.com/claude-code)2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments