Skip to content

fix: return status 303 for redirect#1

Merged
coder2000 merged 1 commit intomainfrom
coder2000-patch-1
Oct 23, 2021
Merged

fix: return status 303 for redirect#1
coder2000 merged 1 commit intomainfrom
coder2000-patch-1

Conversation

@coder2000
Copy link
Copy Markdown
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