Skip to content

fix(html): handle trailing slash in transformIndexHtml pre-transform - #21872

Closed
XploitMonk0x01 wants to merge 2 commits into
vitejs:mainfrom
XploitMonk0x01:fix/18964-ssr-relative-pretransform
Closed

XploitMonk0x01 wants to merge 2 commits into
vitejs:mainfrom
XploitMonk0x01:fix/18964-ssr-relative-pretransform

Conversation

@XploitMonk0x01

Copy link
Copy Markdown

Fixes #18964
Normalizes relative URL pre-transform path resolution when htmlPath ends with /
Adds regression tests in packages/vite/src/node/server/middlewares/tests/indexHtml.spec.ts

travisbreaks

This comment was marked as low quality.

@sapphi-red sapphi-red left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have a test for vite.transformIndexHtml
refs #22480

@sapphi-red

Copy link
Copy Markdown
Member

closing as #22480 was merged

@sapphi-red sapphi-red closed this May 22, 2026
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.

SSR dev server "Pre-transform error: Failed to load url" for relative path

3 participants