Remove dedicated superuser UI route and rename global admin#326
Remove dedicated superuser UI route and rename global admin#326demassimo wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| location / { | ||
| try_files $uri /index.html; | ||
| } |
There was a problem hiding this comment.
Preserve assets when hitting legacy /superuser/ path
Removing the dedicated /superuser locations means /superuser/… now falls through to the catch‑all location / (lines 36‑38), which serves index.html from that subpath. The SPA still references its JS/CSS with relative URLs like assets/app.js, so when the document is loaded at /superuser/ the browser requests /superuser/assets/..., which Nginx does not serve and instead returns HTML. Any operator following an existing /superuser/ bookmark now gets a broken page with no scripts or styles. Redirecting /superuser/* to / or making the asset URLs absolute is needed to keep the legacy entry point usable.
Useful? React with 👍 / 👎.
Summary
Testing
Codex Task