Skip to content

fix: Query params trigger the trailingSlash error in preview mode#9045

Merged
bluwy merged 6 commits intowithastro:mainfrom
rishi-raj-jain:patch-3
Nov 14, 2023
Merged

fix: Query params trigger the trailingSlash error in preview mode#9045
bluwy merged 6 commits intowithastro:mainfrom
rishi-raj-jain:patch-3

Conversation

@rishi-raj-jain
Copy link

@rishi-raj-jain rishi-raj-jain commented Nov 10, 2023

Changes

So this fixes #8942. It basically tweaks the pathname logic to only look at pathname instead of (currently) pathname with query params.

Testing

I think with the current testing suite this was already covered. I didn't particularly test this change.

Docs

I don't think we need a documentation change for this as it was an internal configuration that broke the expectation from preview server.

@changeset-bot
Copy link

changeset-bot bot commented Nov 10, 2023

🦋 Changeset detected

Latest commit: f2b3a4a

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

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

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Nov 10, 2023
@github-actions github-actions bot added the pr: docs A PR that includes documentation for review label Nov 10, 2023
@bluwy bluwy merged commit 84312f2 into withastro:main Nov 14, 2023
@rishi-raj-jain rishi-raj-jain deleted the patch-3 branch November 14, 2023 09:39
@astrobot-houston astrobot-houston mentioned this pull request Nov 14, 2023
peng added a commit to peng/astro that referenced this pull request Nov 17, 2023
* main:
  feat(i18n): add `Astro.currentLocale` (withastro#9101)
  [ci] release (withastro#9107)
  Add compatibility with cloudflare node (withastro#8925)
  [ci] format
  Cancel response stream when connection closes (withastro#9071)
  [ci] format
  feat(i18n): apply specific routing logic only to pages (withastro#9091)
  feat(dev-overlay): Hide plugins into a separate menu when there's too many enabled (withastro#9102)
  [ci] format
  Support Svelte 5 (experimental) (withastro#9098)
  [ci] release (withastro#9078)
  [ci] format
  Refactor shikiji syntax highlighting code (withastro#9083)
  [ci] format
  fix: Query params trigger the trailingSlash error in preview mode (withastro#9045)
  fix(assets): bundling regression for specific config on non-Node runtimes (withastro#9087)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope) pr: docs A PR that includes documentation for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Query params trigger the trailingSlash error in preview mode

3 participants