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

[7.1-stable] fix(RoutingConstraints): Allow Turbo Stream requests #2915

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

alchemycms-bot
Copy link
Collaborator

Backport

This will backport the following commits from main to 7.1-stable:

Questions ?

Please refer to the Backport tool documentation

`rails-turbo` [registers a new request format](https://github.com/hotwired/turbo-rails/blob/e376852bfb273f69f4ebb54cf516b99fcbaa7acb/lib/turbo/engine.rb#L82-L89)

    text/vnd.turbo-stream.html

which is used whenever Turbo redirects.

In order to handle those requests from - for example the messages controller -
we need to allow this mime type to route into Alchemy as well.

(cherry picked from commit 772a151)
@tvdeyen tvdeyen merged commit 7407e4d into 7.1-stable Jun 4, 2024
55 checks passed
@tvdeyen tvdeyen deleted the backport/7.1-stable/pr-2913 branch June 4, 2024 14:21
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.

2 participants