Skip to content

fix(controller): serve the SPA entry point for dashboard deep links - #3390

Open
hakku615 wants to merge 1 commit into
MetaCubeX:Alphafrom
hakku615:fix/ui-spa-fallback
Open

hakku615 wants to merge 1 commit into
MetaCubeX:Alphafrom
hakku615:fix/ui-spa-fallback

Conversation

@hakku615

@hakku615 hakku615 commented Nov 1, 2026

Copy link
Copy Markdown

The embedded UI handler forwards every /ui/* request to http.FileServer, so client-side routes such as /ui/connections return 404 unless a matching file exists on disk. Nuxt's static build emits 200.html as the SPA entry point.

Fall back to 200.html when the requested path does not exist, while static assets keep being served by the file server.

The embedded UI server hands every /ui/* request to http.FileServer, so any
client-side route (for example /ui/connections or /ui/anything) returns 404
unless the file exists on disk.

Fall back to 200.html when the requested path is missing, which is the
Nitro/Vite SPA entry produced by Nuxt `generate`. Static assets keep being
served by the file server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant