close
Skip to content

fix(core): redirect devtools mount path to trailing slash#305

Open
onmax wants to merge 1 commit intovitejs:mainfrom
onmax:fix-devtools-trailing-slash
Open

fix(core): redirect devtools mount path to trailing slash#305
onmax wants to merge 1 commit intovitejs:mainfrom
onmax:fix-devtools-trailing-slash

Conversation

@onmax
Copy link
Copy Markdown

@onmax onmax commented May 5, 2026

Opening the standalone DevTools URL without a trailing slash currently serves the DevTools HTML at /.devtools, but the HTML references assets with relative ./assets/... URLs. Browsers resolve those relative to the parent path and request /assets/... instead of /.devtools/assets/..., which causes JS/CSS MIME errors and a blank screen.

This redirects the exact DevTools mount path to the canonical directory URL while preserving query strings. Subpaths such as auth and assets continue to be handled by the existing middleware.

Probably there is better solutions, so I am open for another approach

@onmax onmax force-pushed the fix-devtools-trailing-slash branch from b50f16f to 8948b3d Compare May 5, 2026 09:27
@onmax onmax marked this pull request as ready for review May 5, 2026 09:31
@onmax onmax changed the title fix: redirect devtools mount path to trailing slash fix(core): redirect devtools mount path to trailing slash May 5, 2026
@onmax onmax force-pushed the fix-devtools-trailing-slash branch from 8948b3d to e1b8f0e Compare May 5, 2026 09:33
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