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: return status 303 for redirect #1

Merged
merged 1 commit into from
Oct 23, 2021
Merged

fix: return status 303 for redirect #1

merged 1 commit into from
Oct 23, 2021

Conversation

coder2000
Copy link
Owner

Turbo uses the DELETE verb directly when using data-turbo-method: :delete in rails so the redirect fails when returning the standard status of 302. This will return a 303 which will force the verb to change to GET. Should not affect any other usage with UJS.

Turbo uses the DELETE verb directly when using `data-turbo-method: :delete` in rails so the redirect fails when returning the standard status of 302. This will return a 303 which will force the verb to change to GET. Should not affect any other usage with UJS.
@coder2000 coder2000 merged commit b266cde into main Oct 23, 2021
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