Skip to content

fix(router): preserve no-trailing SSG static paths - #8902

Open
ShiroKSH wants to merge 1 commit into
QwikDev:mainfrom
ShiroKSH:fix/no-trailing-slash-static-paths
Open

fix(router): preserve no-trailing SSG static paths#8902
ShiroKSH wants to merge 1 commit into
QwikDev:mainfrom
ShiroKSH:fix/no-trailing-slash-static-paths

Conversation

@ShiroKSH

@ShiroKSH ShiroKSH commented Aug 1, 2026

Copy link
Copy Markdown

Fixes #8813.

Summary

  • preserve no-trailing-slash SSG route keys in injected static paths
  • keep base pathnames and loader sidecars canonical

Root cause

postBuild normalized every SSG route with a trailing slash, while the runtime exact-matched no-trailing-slash request pathnames.

Tests

  • focused post-build unit tests

@ShiroKSH
ShiroKSH requested a review from a team as a code owner August 1, 2026 18:49
@changeset-bot

changeset-bot Bot commented Aug 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ace05e0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@qwik.dev/router Patch
eslint-plugin-qwik Patch
@qwik.dev/core Patch
create-qwik Patch
@qwik.dev/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

[🐞] postBuild always runs in trailing-slash mode, ignoring __NO_TRAILING_SLASH__

1 participant