Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(routing): actions should redirect the original pathname (#12173) #12235

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

ematipico
Copy link
Member

Changes

Second attempt.

Fixes #12146

This time no headers, we use Reflect, which is a technique we already use extensively. We should have led with that approach in the first place.

Testing

The uncommented test should pass

Docs

N/A

* fix(routing): actions should redirect the original pathname

* decode header to avoid index out of bounds

* fix e2e test

* Update packages/astro/e2e/actions-blog.test.js

Co-authored-by: Bjorn Lu <[email protected]>

---------

Co-authored-by: Bjorn Lu <[email protected]>
@ematipico ematipico requested a review from bluwy October 15, 2024 15:00
Copy link

changeset-bot bot commented Oct 15, 2024

🦋 Changeset detected

Latest commit: cf6d4f2

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 Oct 15, 2024
@ematipico ematipico force-pushed the fix/astro-actions-v2 branch from 41c20c9 to cf6d4f2 Compare October 15, 2024 15:03
@ematipico ematipico merged commit a75bc5e into main Oct 18, 2024
13 checks passed
@ematipico ematipico deleted the fix/astro-actions-v2 branch October 18, 2024 10:09
@astrobot-houston astrobot-houston mentioned this pull request Oct 18, 2024
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite leads to 404 followed by 302 when using Server Actions in Forms
2 participants